From d157c292693972658d138475276dca85df77539b Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 19 Jul 2006 21:14:02 +0000 Subject: Fix compiler warnings --- lib/url.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/url.c') diff --git a/lib/url.c b/lib/url.c index 7c0ebc7e6..85fef52c0 100644 --- a/lib/url.c +++ b/lib/url.c @@ -2927,7 +2927,7 @@ static CURLcode CreateConnection(struct SessionHandle *data, /* Now, build _proxy and check for such a one to use */ while(*protop) - *envp++ = tolower((int)*protop++); + *envp++ = (char)tolower((int)*protop++); /* append _proxy */ strcpy(envp, "_proxy"); @@ -2950,7 +2950,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((int)*envp); + *envp = (char)toupper((int)*envp); prox=curl_getenv(proxy_env); } @@ -3080,7 +3080,7 @@ static CURLcode CreateConnection(struct SessionHandle *data, } conn->port = port; - conn->remote_port = port; + conn->remote_port = (unsigned short)port; conn->protocol |= PROT_FTP; if(data->change.proxy && @@ -3120,7 +3120,7 @@ static CURLcode CreateConnection(struct SessionHandle *data, if(type) { char command; *type=0; /* it was in the middle of the hostname */ - command = toupper((int)type[6]); + command = (char)toupper((int)type[6]); switch(command) { case 'A': /* ASCII mode */ data->set.ftp_ascii = 1; @@ -3222,7 +3222,7 @@ static CURLcode CreateConnection(struct SessionHandle *data, if(type) { char command; *type=0; /* it was in the middle of the hostname */ - command = toupper((int)type[6]); + command = (char)toupper((int)type[6]); switch(command) { case 'A': /* ASCII mode */ case 'N': /* NETASCII mode */ -- cgit v1.2.3