diff options
| author | basicallygit <[email protected]> | 2025-11-20 21:33:53 +0000 |
|---|---|---|
| committer | basicallygit <[email protected]> | 2025-11-21 14:24:37 +0000 |
| commit | c138da8d7f550ef1699eb50d786925d74c18a79a (patch) | |
| tree | a916f27e72f3368b943e6c817795b68d43738847 /src/net/util.c | |
| parent | 01c3959cbb6dbe378c7ec6d5d079397fdc1296b7 (diff) | |
Fix returning void value from void functions and print mimetypes warning to stderr
Diffstat (limited to 'src/net/util.c')
| -rw-r--r-- | src/net/util.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/util.c b/src/net/util.c index 344ea35..3b820c9 100644 --- a/src/net/util.c +++ b/src/net/util.c @@ -413,7 +413,10 @@ void parse_mimetypes(){ mime_type = map_init(); FILE* fp = fopen(_mimetypes, "r"); - if(fp == NULL) return (void)printf("unable to load mimetypes, set llby.net.mimetypes to a proper location, or nil to skip this\n"); + if(fp == NULL){ + fprintf(stderr, "unable to load mimetypes, set llby.net.mimetypes to a proper location, or nil to skip this\n"); + return; + } char* line = NULL; size_t len = 0; |
