diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-11-17 09:48:21 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-11-17 09:48:21 +0000 |
commit | 2297bc4791e1cb5c6ed034b4d4a1355c1e4e1b0c (patch) | |
tree | 5fc1b23d1d286d3a1e1cd69e99d55b009447b4be /lib/url.c | |
parent | 34a2d446e09971101fd779bd5f9e6ade3e32986a (diff) |
changed the 'port' field to long to better work with the va_arg() system
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 *); |