aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-07-19 21:14:02 +0000
committerYang Tse <yangsita@gmail.com>2006-07-19 21:14:02 +0000
commitd157c292693972658d138475276dca85df77539b (patch)
treed51651e65fe7145775ae0562c5a25cbdbce9dc8d /lib/url.c
parent4d2e81661bbea7164209b5aac28c4f3d3f5dae8c (diff)
Fix compiler warnings
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c10
1 files changed, 5 insertions, 5 deletions
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 <protocol>_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 */