1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-10 11:35:07 -05:00

typecast tolower/toupper arguments to int to make picky compilers complain

less
This commit is contained in:
Daniel Stenberg 2004-04-21 11:15:02 +00:00
parent 3ef3f2b6f0
commit 9ba010c629

View File

@ -2326,7 +2326,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
/* Now, build <protocol>_proxy and check for such a one to use */ /* Now, build <protocol>_proxy and check for such a one to use */
while(*protop) while(*protop)
*envp++ = tolower(*protop++); *envp++ = tolower((int)*protop++);
/* append _proxy */ /* append _proxy */
strcpy(envp, "_proxy"); strcpy(envp, "_proxy");
@ -2349,7 +2349,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
if(!prox && !strequal("http_proxy", proxy_env)) { if(!prox && !strequal("http_proxy", proxy_env)) {
/* There was no lowercase variable, try the uppercase version: */ /* There was no lowercase variable, try the uppercase version: */
for(envp = proxy_env; *envp; envp++) for(envp = proxy_env; *envp; envp++)
*envp = toupper(*envp); *envp = toupper((int)*envp);
prox=curl_getenv(proxy_env); prox=curl_getenv(proxy_env);
} }
@ -2578,7 +2578,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
if(type) { if(type) {
char command; char command;
*type=0; /* it was in the middle of the hostname */ *type=0; /* it was in the middle of the hostname */
command = toupper(type[6]); command = toupper((int)type[6]);
switch(command) { switch(command) {
case 'A': /* ASCII mode */ case 'A': /* ASCII mode */
data->set.ftp_ascii = 1; data->set.ftp_ascii = 1;