From: divverent Date: Thu, 29 May 2014 20:04:10 +0000 (+0000) Subject: Clarify comment in CURL_fwrite. X-Git-Tag: xonotic-v0.8.0~55 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=20149b4782f3360e85f36b8ab4f4a721eb7fd4ce;p=xonotic%2Fdarkplaces.git Clarify comment in CURL_fwrite. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12082 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=27b98f353293437387da06b79f2fc5c5d716ff16 --- diff --git a/libcurl.c b/libcurl.c index fd1671ff..43051547 100644 --- a/libcurl.c +++ b/libcurl.c @@ -430,7 +430,10 @@ static size_t CURL_fwrite(void *data, size_t size, size_t nmemb, void *vdi) di->bytes_received += bytes; - return ret; // why not ret / nmemb? + return ret; + // Why not ret / nmemb? + // Because CURLOPT_WRITEFUNCTION docs say to return the number of bytes. + // Yes, this is incompatible to fwrite(2). } typedef enum