]> granicus.if.org Git - curl/commitdiff
externalsocket.c: fix compiler warning for fwrite return type
authorDaniel Stenberg <daniel@haxx.se>
Wed, 17 Feb 2016 14:00:54 +0000 (15:00 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 17 Feb 2016 14:00:54 +0000 (15:00 +0100)
docs/examples/externalsocket.c

index 1b6c9209dd36ebcb3aa6157dead816effc5f10b5..8152515b6e33026a8fa4d9fa8b592183f21b56c4 100644 (file)
@@ -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;
 }