Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.zx2c4.com/cgit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2026-05-05 00:03:22 +0300
committerJason A. Donenfeld <Jason@zx2c4.com>2026-05-05 00:03:51 +0300
commit5a0f900569f421422bd7511a45c7346c7668e710 (patch)
tree111f377a9925e7ba5dcc39c10d691c9a240b8114 /shared.c
parent44ca1d1ec8eee7f4440fbfd613fc1072a14b441c (diff)
global: fix libc constness warnings
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'shared.c')
-rw-r--r--shared.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shared.c b/shared.c
index 8173eb8..a39394d 100644
--- a/shared.c
+++ b/shared.c
@@ -551,7 +551,8 @@ char *expand_macros(const char *txt)
char *get_mimetype_for_filename(const char *filename)
{
- char *ext, *mimetype, line[1024];
+ const char *ext;
+ char *mimetype, line[1024];
struct string_list list = STRING_LIST_INIT_NODUP;
int i;
FILE *file;