From: Daniel Stenberg Date: Wed, 21 Apr 2004 11:15:02 +0000 (+0000) Subject: typecast tolower/toupper arguments to int to make picky compilers complain X-Git-Tag: curl-7_11_2~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9ba010c6291b7834898103621e8d8efb95b89da5;p=thirdparty%2Fcurl.git typecast tolower/toupper arguments to int to make picky compilers complain less --- diff --git a/lib/url.c b/lib/url.c index 078b74c47d..87d1685f29 100644 --- a/lib/url.c +++ b/lib/url.c @@ -2326,7 +2326,7 @@ static CURLcode CreateConnection(struct SessionHandle *data, /* Now, build _proxy and check for such a one to use */ while(*protop) - *envp++ = tolower(*protop++); + *envp++ = tolower((int)*protop++); /* append _proxy */ strcpy(envp, "_proxy"); @@ -2349,7 +2349,7 @@ static CURLcode CreateConnection(struct SessionHandle *data, if(!prox && !strequal("http_proxy", proxy_env)) { /* There was no lowercase variable, try the uppercase version: */ for(envp = proxy_env; *envp; envp++) - *envp = toupper(*envp); + *envp = toupper((int)*envp); prox=curl_getenv(proxy_env); } @@ -2578,7 +2578,7 @@ static CURLcode CreateConnection(struct SessionHandle *data, if(type) { char command; *type=0; /* it was in the middle of the hostname */ - command = toupper(type[6]); + command = toupper((int)type[6]); switch(command) { case 'A': /* ASCII mode */ data->set.ftp_ascii = 1;