X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-lib%2Fmapping.c;h=4c1e7f0c1e3dc21f8898e759de651e79732a803c;hp=c3065ba13ea30838cab5e8d57a6e890e77bba4aa;hb=6920eb5798f2d9f25e5ea1af2ba86122cf408bd1;hpb=91d0c04349c9345f0ee29a61cc18dfc144b60edc diff --git a/lib-lib/mapping.c b/lib-lib/mapping.c index c3065ba..4c1e7f0 100644 --- a/lib-lib/mapping.c +++ b/lib-lib/mapping.c @@ -29,9 +29,7 @@ * please see the file GPL in the top level source directory. */ -#include - -#include "mapping.h" +#include "lib-lib.h" const char *mutt_getnamebyvalue(int val, const struct mapping_t *map) { @@ -39,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; } @@ -50,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; }