summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-11-30 21:59:51 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-11-30 21:59:51 +0000
commit173f12db6810f3307ffb0f4f6237ecdff546c6d2 (patch)
tree8e1e4d51af90393ccb93f34f729cba89d8296aba
parent983e3ae8c5aa08f3ccb56f0e57720f36255ee274 (diff)
downloadgnurl-173f12db6810f3307ffb0f4f6237ecdff546c6d2.tar.gz
gnurl-173f12db6810f3307ffb0f4f6237ecdff546c6d2.tar.bz2
gnurl-173f12db6810f3307ffb0f4f6237ecdff546c6d2.zip
added a typecast to shut up a VC++ warning when converting from long
to unsigned short
-rw-r--r--lib/ftp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 568a9b917..1d7b9c284 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -860,7 +860,8 @@ CURLcode _ftp(struct connectdata *conn)
* previous lookup.
*/
he = conn->hp;
- connectport = data->port; /* we connect to the proxy's port */
+ connectport =
+ (unsigned short)data->port; /* we connect to the proxy's port */
}
else {
/* normal, direct, ftp connection */