mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
changed the 'port' field to long to better work with the va_arg() system
This commit is contained in:
parent
34a2d446e0
commit
2297bc4791
@ -446,9 +446,7 @@ CURLcode curl_setopt(CURL *curl, CURLoption option, ...)
|
|||||||
data->url = va_arg(param, char *);
|
data->url = va_arg(param, char *);
|
||||||
break;
|
break;
|
||||||
case CURLOPT_PORT:
|
case CURLOPT_PORT:
|
||||||
/* this typecast is used to fool the compiler to NOT warn for a
|
data->port = va_arg(param, long);
|
||||||
"cast from pointer to integer of different size" */
|
|
||||||
data->port = (unsigned short)(va_arg(param, long));
|
|
||||||
break;
|
break;
|
||||||
case CURLOPT_POSTFIELDS:
|
case CURLOPT_POSTFIELDS:
|
||||||
data->postfields = va_arg(param, char *);
|
data->postfields = va_arg(param, char *);
|
||||||
|
@ -331,7 +331,7 @@ struct ssldata {
|
|||||||
bool use; /* use ssl encrypted communications TRUE/FALSE */
|
bool use; /* use ssl encrypted communications TRUE/FALSE */
|
||||||
long version; /* what version the client wants to use */
|
long version; /* what version the client wants to use */
|
||||||
long certverifyresult; /* result from the certificate verification */
|
long certverifyresult; /* result from the certificate verification */
|
||||||
bool verifypeer; /* set TRUE if this is desired */
|
long verifypeer; /* set TRUE if this is desired */
|
||||||
char *CApath; /* DOES NOT WORK ON WINDOWS */
|
char *CApath; /* DOES NOT WORK ON WINDOWS */
|
||||||
char *CAfile; /* cerficate to verify peer against */
|
char *CAfile; /* cerficate to verify peer against */
|
||||||
#ifdef USE_SSLEAY
|
#ifdef USE_SSLEAY
|
||||||
@ -401,8 +401,8 @@ struct UrlData {
|
|||||||
char *url; /* what to get */
|
char *url; /* what to get */
|
||||||
char *freethis; /* if non-NULL, an allocated string for the URL */
|
char *freethis; /* if non-NULL, an allocated string for the URL */
|
||||||
char *hostname; /* hostname to connect, as parsed from url */
|
char *hostname; /* hostname to connect, as parsed from url */
|
||||||
unsigned short port; /* which port to use (if non-protocol bind) set
|
long port; /* which port to use (if non-protocol bind) set
|
||||||
CONF_PORT to use this */
|
CONF_PORT to use this */
|
||||||
unsigned short remote_port; /* what remote port to connect to, not the proxy
|
unsigned short remote_port; /* what remote port to connect to, not the proxy
|
||||||
port! */
|
port! */
|
||||||
struct Configbits bits; /* new-style (v7) flag data */
|
struct Configbits bits; /* new-style (v7) flag data */
|
||||||
|
Loading…
Reference in New Issue
Block a user