diff options
Diffstat (limited to 'src/examples/spdy_fileserver.c')
-rw-r--r-- | src/examples/spdy_fileserver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/examples/spdy_fileserver.c b/src/examples/spdy_fileserver.c index a59b6e9e..eea0930e 100644 --- a/src/examples/spdy_fileserver.c +++ b/src/examples/spdy_fileserver.c | |||
@@ -40,7 +40,7 @@ char* basedir; | |||
40 | 40 | ||
41 | 41 | ||
42 | #define GET_MIME_TYPE(fname, mime) do {\ | 42 | #define GET_MIME_TYPE(fname, mime) do {\ |
43 | uint __len = strlen(fname);\ | 43 | unsigned int __len = strlen(fname);\ |
44 | if (__len < 4 || '.' != (fname)[__len - 4]) break;\ | 44 | if (__len < 4 || '.' != (fname)[__len - 4]) break;\ |
45 | const char * __ext = &(fname)[__len - 3];\ | 45 | const char * __ext = &(fname)[__len - 3];\ |
46 | if(0 == strcmp(__ext, "jpg")) (mime) = strdup("image/jpeg");\ | 46 | if(0 == strcmp(__ext, "jpg")) (mime) = strdup("image/jpeg");\ |