mirror of
https://github.com/curl/curl.git
synced 2026-08-25 00:33:31 +03:00
examples: fix compiler warnings
This commit is contained in:
parent
8219bc9e19
commit
9583b4af90
14 changed files with 25 additions and 19 deletions
|
|
@ -43,7 +43,7 @@ WriteMemoryCallback(void *ptr, size_t size, size_t nmemb, void *data)
|
|||
}
|
||||
|
||||
|
||||
int main(int argc, char **argv)
|
||||
int main(void)
|
||||
{
|
||||
CURL *curl_handle;
|
||||
|
||||
|
|
@ -87,7 +87,7 @@ int main(int argc, char **argv)
|
|||
* you're done with it, you should free() it as a nice application.
|
||||
*/
|
||||
|
||||
printf("%lu bytes retrieved\n", chunk.size);
|
||||
printf("%lu bytes retrieved\n", (long)chunk.size);
|
||||
|
||||
if(chunk.memory)
|
||||
free(chunk.memory);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue