diff options
author | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-03-10 17:46:39 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-03-10 17:46:39 +0100 |
commit | 9088b328b51e685d424fd21817e8aab456d6ab24 (patch) | |
tree | 7194af15bd163f408daeb1232a4a1140b40c099d /src/uca.c | |
parent | a1e34e365b84d5a1c47dbcffa4141303533a55e7 (diff) | |
download | uca-9088b328b51e685d424fd21817e8aab456d6ab24.tar.gz uca-9088b328b51e685d424fd21817e8aab456d6ab24.tar.bz2 uca-9088b328b51e685d424fd21817e8aab456d6ab24.tar.xz uca-9088b328b51e685d424fd21817e8aab456d6ab24.zip |
Fix all warnings issued by -Wall
Diffstat (limited to 'src/uca.c')
-rw-r--r-- | src/uca.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,5 @@ #include <stdlib.h> +#include <string.h> #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; } |