From 2297bc4791e1cb5c6ed034b4d4a1355c1e4e1b0c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 17 Nov 2000 09:48:21 +0000 Subject: changed the 'port' field to long to better work with the va_arg() system --- lib/url.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/url.c') diff --git a/lib/url.c b/lib/url.c index 9e32eaff4..eea7808ea 100644 --- a/lib/url.c +++ b/lib/url.c @@ -446,9 +446,7 @@ CURLcode curl_setopt(CURL *curl, CURLoption option, ...) data->url = va_arg(param, char *); break; case CURLOPT_PORT: - /* this typecast is used to fool the compiler to NOT warn for a - "cast from pointer to integer of different size" */ - data->port = (unsigned short)(va_arg(param, long)); + data->port = va_arg(param, long); break; case CURLOPT_POSTFIELDS: data->postfields = va_arg(param, char *); -- cgit v1.2.3