mirror of
https://github.com/curl/curl.git
synced 2026-08-11 21:20:59 +03:00
changed the 'port' field to long to better work with the va_arg() system
This commit is contained in:
parent
34a2d446e0
commit
2297bc4791
2 changed files with 4 additions and 6 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 *);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue