Skip to content

Commit

Permalink
typecast tolower/toupper arguments to int to make picky compilers com…
Browse files Browse the repository at this point in the history
…plain

less
  • Loading branch information
bagder committed Apr 21, 2004
1 parent 3ef3f2b commit 9ba010c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/url.c
Original file line number Diff line number Diff line change
Expand Up @@ -2326,7 +2326,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,

/* Now, build <protocol>_proxy and check for such a one to use */
while(*protop)
*envp++ = tolower(*protop++);
*envp++ = tolower((int)*protop++);

/* append _proxy */
strcpy(envp, "_proxy");
Expand All @@ -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);
}

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 9ba010c

Please sign in to comment.