From: Daniel Stenberg Date: Fri, 18 Nov 2005 07:23:50 +0000 (+0000) Subject: fix compiler warning X-Git-Tag: curl-7_15_1~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0264faaa4e3679e1c38f4cbdc860b18f68f2efe7;p=thirdparty%2Fcurl.git fix compiler warning --- diff --git a/lib/transfer.c b/lib/transfer.c index 664a412bdb..11a8f84636 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -2223,7 +2223,7 @@ CURLcode Curl_perform(struct SessionHandle *data) * an error, use the strerror() string or if things are so bad that not * even that is good, set a bad string that mentions the error code. */ - char *str = curl_easy_strerror(res); + const char *str = curl_easy_strerror(res); if(!str) failf(data, "unspecified error %d", (int)res); else