use stderr for error output.

This commit is contained in:
Gunter Knauf 2009-09-10 18:36:06 +00:00
parent 5389ac0ddf
commit 945feafe25

View File

@ -150,7 +150,8 @@ int main(int argc, char *argv[])
printf("Average download speed: %0.3f kbyte/sec.\n", val / 1024); printf("Average download speed: %0.3f kbyte/sec.\n", val / 1024);
} else { } else {
printf("Error while fetching '%s' : %s\n", url, curl_easy_strerror(res)); fprintf(stderr, "Error while fetching '%s' : %s\n",
url, curl_easy_strerror(res));
} }
/* cleanup curl stuff */ /* cleanup curl stuff */