diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-04-30 15:39:10 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-04-30 15:39:10 +0200 |
commit | 58552e93ac47622f8ded3a4075260f56586d84a1 (patch) | |
tree | 29637b43359dbb700590b1fe38a5768265a9b260 /src/examples/http_chunked_compression.c | |
parent | c3ac4b58deffa74cb49418518db4a5c9f02ebb85 (diff) | |
download | libmicrohttpd-58552e93ac47622f8ded3a4075260f56586d84a1.tar.gz libmicrohttpd-58552e93ac47622f8ded3a4075260f56586d84a1.zip |
applying patch from Tim
Diffstat (limited to 'src/examples/http_chunked_compression.c')
-rw-r--r-- | src/examples/http_chunked_compression.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/examples/http_chunked_compression.c b/src/examples/http_chunked_compression.c index 9e49c131..7f4a1333 100644 --- a/src/examples/http_chunked_compression.c +++ b/src/examples/http_chunked_compression.c | |||
@@ -92,7 +92,7 @@ read_cb (void *cls, uint64_t pos, char *mem, size_t size) | |||
92 | if (NULL == src) | 92 | if (NULL == src) |
93 | return MHD_CONTENT_READER_END_WITH_ERROR; | 93 | return MHD_CONTENT_READER_END_WITH_ERROR; |
94 | size = fread (src, 1, size, holder->file); | 94 | size = fread (src, 1, size, holder->file); |
95 | if (size < 0) | 95 | if ((ssize_t) size < 0) |
96 | { | 96 | { |
97 | size = MHD_CONTENT_READER_END_WITH_ERROR; | 97 | size = MHD_CONTENT_READER_END_WITH_ERROR; |
98 | goto done; | 98 | goto done; |