aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-09-24 18:33:59 +0200
committerYang Tse <yangsita@gmail.com>2011-09-24 18:33:59 +0200
commitb3ea4881a874952045e233f2c6266a3f7b5f38f2 (patch)
treeb64f3408d3d3f11ab54f245efc5f0a03d0ede77c
parentc6702c7d3f53b0eb07e452c732df1b8f5765b287 (diff)
curl tool: fix a compiler warning
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 306df623d..4111c85f3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -4339,8 +4339,8 @@ operate(struct Configurable *config, int argc, argv_item_t argv[])
else
#endif
if(res && config->showerror) {
- fprintf(config->errors, "curl: (%d) %s\n", res,
- (errorbuffer[0]) ? errorbuffer: curl_easy_strerror(res));
+ fprintf(config->errors, "curl: (%d) %s\n", res, (errorbuffer[0]) ?
+ errorbuffer : curl_easy_strerror((CURLcode)res));
if(res == CURLE_SSL_CACERT)
fprintf(config->errors, "%s%s",
CURL_CA_CERT_ERRORMSG1, CURL_CA_CERT_ERRORMSG2);