Skip to content
Snippets Groups Projects
Commit a8ae8087 authored by Yang Tse's avatar Yang Tse
Browse files

fix compiler warning

parent 502da27d
No related branches found
No related tags found
No related merge requests found
......@@ -392,7 +392,7 @@ CURLcode Curl_SOCKS5(const char *proxy_name,
long timeout;
bool socks5_resolve_local = (bool)(data->set.proxytype == CURLPROXY_SOCKS5);
const size_t hostname_len = strlen(hostname);
int packetsize = 0;
ssize_t packetsize = 0;
/* RFC1928 chapter 5 specifies max 255 chars for domain name in packet */
if(!socks5_resolve_local && hostname_len > 255)
......
......@@ -1466,7 +1466,9 @@ static int sockoptcallback(void *clientp, curl_socket_t curlfd,
struct Configurable *config = (struct Configurable *)clientp;
int onoff = 1; /* this callback is only used if we ask for keepalives on the
connection */
long keepidle = config->alivetime;
#if defined(TCP_KEEPIDLE) || defined(TCP_KEEPINTVL)
int keepidle = (int)config->alivetime;
#endif
switch (purpose) {
case CURLSOCKTYPE_IPCXN:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment