From 9088b328b51e685d424fd21817e8aab456d6ab24 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Thu, 10 Mar 2011 17:46:39 +0100 Subject: Fix all warnings issued by -Wall --- src/uca.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/uca.c') diff --git a/src/uca.c b/src/uca.c index 35d2e4f..4e1af56 100644 --- a/src/uca.c +++ b/src/uca.c @@ -1,4 +1,5 @@ #include +#include #include "config.h" #include "uca.h" @@ -173,7 +174,6 @@ void uca_destroy(struct uca_t *uca) enum uca_property_ids uca_get_property_id(const char *property_name) { - char *name; int i = 0; while (property_map[i].name != NULL) { if (!strcmp(property_map[i].name, property_name)) @@ -194,4 +194,5 @@ const char* uca_get_property_name(enum uca_property_ids property_id) { if ((property_id >= 0) && (property_id < UCA_PROP_LAST)) return property_map[property_id].name; + return UCA_NO_ERROR; } -- cgit v1.2.3