]> granicus.if.org Git - curl/commitdiff
typecase the argument to curl_easy_strerror() to a CURLcode to please
authorDaniel Stenberg <daniel@haxx.se>
Thu, 1 Jul 2004 14:06:44 +0000 (14:06 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 1 Jul 2004 14:06:44 +0000 (14:06 +0000)
picky compilers

src/main.c

index 6d8a21bf0e334333ed076bf735e65186a153bc5e..256a35e94d84102cf28c1ffaeceac4ccca6fe625 100644 (file)
@@ -3457,7 +3457,8 @@ operate(struct Configurable *config, int argc, char *argv[])
 #else
         if((res!=CURLE_OK) && config->showerror) {
           fprintf(config->errors, "curl: (%d) %s\n", (int)res,
-                  errorbuffer[0]? errorbuffer: curl_easy_strerror(res));
+                  errorbuffer[0]? errorbuffer:
+                  curl_easy_strerror((CURLcode)res));
           if(CURLE_SSL_CACERT == res) {
 #define CURL_CA_CERT_ERRORMSG1 \
 "More details here: http://curl.haxx.se/docs/sslcerts.html\n\n" \