examples: fix compiler warnings

This commit is contained in:
Daniel Stenberg 2010-12-17 23:34:26 +01:00
parent 8219bc9e19
commit 9583b4af90
14 changed files with 25 additions and 19 deletions

View file

@ -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);