* please see the file GPL in the top level source directory.
*/
-#include <stdlib.h>
-
-#include "mapping.h"
-#include "ascii.h"
+#include "lib-lib.h"
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;
}
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;
}