From 97ab9877a24366e2446596186645c53c4c6a2c85 Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Thu, 2 Jul 2020 22:34:33 +0800 Subject: [PATCH] Fix variable name Signed-off-by: Jianhui Zhao --- src/mimetypes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mimetypes.c b/src/mimetypes.c index ec16173..5c3f243 100644 --- a/src/mimetypes.c +++ b/src/mimetypes.c @@ -27,7 +27,7 @@ #include "mimetypes.h" -static const struct mimetype uh_mime_types[] = { +static const struct mimetype mime_types[] = { { "txt", "text/plain" }, { "log", "text/plain" }, { "js", "text/javascript" }, @@ -96,7 +96,7 @@ static const struct mimetype uh_mime_types[] = { const char *file_mime_lookup(const char *path) { - const struct mimetype *m = &uh_mime_types[0]; + const struct mimetype *m = &mime_types[0]; const char *e; while (m->extn) {