projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e268e85
)
compiler warning fix
author
Yang Tse
<yangsita@gmail.com>
Tue, 20 Feb 2007 14:01:04 +0000
(14:01 +0000)
committer
Yang Tse
<yangsita@gmail.com>
Tue, 20 Feb 2007 14:01:04 +0000
(14:01 +0000)
lib/socks.c
patch
|
blob
|
history
diff --git
a/lib/socks.c
b/lib/socks.c
index
accab02
..
cd40d37
100644
(file)
--- a/
lib/socks.c
+++ b/
lib/socks.c
@@
-149,7
+149,7
@@
CURLcode Curl_SOCKS4(const char *proxy_name,
socksreq[0] = 4; /* version (SOCKS4) */
socksreq[1] = 1; /* connect */
- *((unsigned short*)&socksreq[2]) = htons(remote_port);
+ *((unsigned short*)&socksreq[2]) = htons(
(unsigned short)
remote_port);
/* DNS resolve */
{
@@
-552,7
+552,7
@@
CURLcode Curl_SOCKS5(const char *proxy_name,
}
}
- *((unsigned short*)&socksreq[8]) = htons(remote_port);
+ *((unsigned short*)&socksreq[8]) = htons(
(unsigned short)
remote_port);
{
const int packetsize = 10;