aboutsummaryrefslogtreecommitdiff
path: root/docs/examples
diff options
context:
space:
mode:
authorGunter Knauf <gk@gknw.de>2009-09-10 18:36:06 +0000
committerGunter Knauf <gk@gknw.de>2009-09-10 18:36:06 +0000
commit945feafe25b97bdf0d91f49c5452608d66f2e047 (patch)
tree59c09d0006f34824afcd905463606cec3d598064 /docs/examples
parent5389ac0ddfca51599d3db67734fe9fe694868fbc (diff)
use stderr for error output.
Diffstat (limited to 'docs/examples')
-rw-r--r--docs/examples/chkspeed.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/examples/chkspeed.c b/docs/examples/chkspeed.c
index 031eec893..7d2a3da61 100644
--- a/docs/examples/chkspeed.c
+++ b/docs/examples/chkspeed.c
@@ -150,7 +150,8 @@ int main(int argc, char *argv[])
printf("Average download speed: %0.3f kbyte/sec.\n", val / 1024);
} 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 */