diff options
Diffstat (limited to 'mime.c')
-rw-r--r-- | mime.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -34,7 +34,7 @@ #include "mime.h" struct mime_map { - char* str; + char *str; enum mime mime; }; @@ -119,11 +119,11 @@ char* mime_desc_list[MIME__MAX] = { }; enum mime -mime_from_ext(char * ext) +mime_from_ext(const char *ext) { struct mime_map *mime; - for(mime = mime_ext_list; mime->str != NULL; mime++) { + for (mime = mime_ext_list; mime->str != NULL; mime++) { if (strcasecmp(ext, mime->str) == 0) { return mime->mime; } @@ -132,7 +132,7 @@ mime_from_ext(char * ext) } -char * +const char * mime_str(enum mime mime) { return mime_desc_list[mime]; |