added a typecast to shut up a VC++ warning when converting from long
authorDaniel Stenberg <daniel@haxx.se>
Thu, 30 Nov 2000 21:59:51 +0000 (21:59 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 30 Nov 2000 21:59:51 +0000 (21:59 +0000)
to unsigned short

lib/ftp.c

index 568a9b9..1d7b9c2 100644 (file)
--- 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 */