aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-02-24 00:03:06 +0000
committerYang Tse <yangsita@gmail.com>2010-02-24 00:03:06 +0000
commit5695c4db861e3c3f200005ae428c89cd3ad6ccdb (patch)
tree5bdb249f29dffeec6784322ec111efcd8f80a609 /lib/url.c
parentaa0f8593b9b97948c509cbb475a9f184b9650e02 (diff)
fix compiler warning
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index c67e8a6a7..887c06a84 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -120,6 +120,7 @@ void idn_free (void *ptr); /* prototype from idn-free.h, not provided by
#include "easyif.h"
#include "speedcheck.h"
#include "rawstr.h"
+#include "warnless.h"
/* And now for the protocols */
#include "ftp.h"
@@ -4267,7 +4268,7 @@ static CURLcode parse_remote_port(struct SessionHandle *data,
}
*portptr = '\0'; /* cut off the name there */
- conn->remote_port = (unsigned short)port;
+ conn->remote_port = curlx_ultous(port);
}
}
return CURLE_OK;