From: Daniel Stenberg Date: Wed, 17 Feb 2016 14:00:54 +0000 (+0100) Subject: externalsocket.c: fix compiler warning for fwrite return type X-Git-Tag: curl-7_48_0~133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e624714cad2a9f32e06f581feeea87b3825271d0;p=curl externalsocket.c: fix compiler warning for fwrite return type --- diff --git a/docs/examples/externalsocket.c b/docs/examples/externalsocket.c index 1b6c9209d..8152515b6 100644 --- a/docs/examples/externalsocket.c +++ b/docs/examples/externalsocket.c @@ -54,7 +54,7 @@ static size_t write_data(void *ptr, size_t size, size_t nmemb, void *stream) { - int written = fwrite(ptr, size, nmemb, (FILE *)stream); + size_t written = fwrite(ptr, size, nmemb, (FILE *)stream); return written; }