projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6702c7
)
curl tool: fix a compiler warning
author
Yang Tse
<yangsita@gmail.com>
Sat, 24 Sep 2011 16:33:59 +0000
(18:33 +0200)
committer
Yang Tse
<yangsita@gmail.com>
Sat, 24 Sep 2011 16:33:59 +0000
(18:33 +0200)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
306df62
..
4111c85
100644
(file)
--- 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);