return isn't a function FFS
[apps/madmutt.git] / lib-lib / mapping.c
index f446ffd..4c1e7f0 100644 (file)
@@ -37,7 +37,7 @@ const char *mutt_getnamebyvalue(int val, const struct mapping_t *map)
 
     for (i = 0; map[i].name; i++)
         if (map[i].value == val)
-            return (map[i].name);
+            return map[i].name;
 
     return NULL;
 }
@@ -48,7 +48,7 @@ int mutt_getvaluebyname(const char *name, const struct mapping_t *map)
 
     for (i = 0; map[i].name; i++)
         if (ascii_strcasecmp (map[i].name, name) == 0)
-            return (map[i].value);
+            return map[i].value;
 
     return -1;
 }