aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-06-24 09:14:59 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-06-24 09:14:59 +0000
commit00ee738fdd3a32d47060e041d18ee8300980e350 (patch)
tree2767a6fe9238e2c1d7e720d0d85c9145dc86f5d5
parent8d0a823124e428e002fed7bc76d3fe2c33ffc023 (diff)
typecasts to prevent warnings
-rw-r--r--lib/url.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/url.c b/lib/url.c
index be46e7bcb..59d674ca1 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1881,10 +1881,10 @@ static int handleSock5Proxy(const char *proxy_name,
if(4 == sscanf( buf, "%hu.%hu.%hu.%hu",
&ip[0], &ip[1], &ip[2], &ip[3])) {
- socksreq[4] = ip[0];
- socksreq[5] = ip[1];
- socksreq[6] = ip[2];
- socksreq[7] = ip[3];
+ socksreq[4] = (unsigned char)ip[0];
+ socksreq[5] = (unsigned char)ip[1];
+ socksreq[6] = (unsigned char)ip[2];
+ socksreq[7] = (unsigned char)ip[3];
}
else
hp = NULL; /* fail! */