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