From 23f8dca6fb91329fe78bb5a00527286692d2a357 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 5 Dec 2012 00:37:57 +0100 Subject: examples: fix compilation issues --- docs/examples/progressfunc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/examples/progressfunc.c') diff --git a/docs/examples/progressfunc.c b/docs/examples/progressfunc.c index a49806028..51a9c9b5e 100644 --- a/docs/examples/progressfunc.c +++ b/docs/examples/progressfunc.c @@ -59,7 +59,7 @@ static int progress(void *p, int main(void) { CURL *curl; - CURLcode res=0; + CURLcode res = CURLE_OK; struct myprogress prog; curl = curl_easy_init(); @@ -74,7 +74,7 @@ int main(void) curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L); res = curl_easy_perform(curl); - if(res) + if(res != CURLE_OK) fprintf(stderr, "%s\n", curl_easy_strerror(res)); /* always cleanup */ -- cgit v1.2.3