summaryrefslogtreecommitdiffstats
path: root/src/uca.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-10 17:46:39 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-10 17:46:39 +0100
commit9088b328b51e685d424fd21817e8aab456d6ab24 (patch)
tree7194af15bd163f408daeb1232a4a1140b40c099d /src/uca.c
parenta1e34e365b84d5a1c47dbcffa4141303533a55e7 (diff)
downloaduca-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.c3
1 files changed, 2 insertions, 1 deletions
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 <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;
}