mirror of
https://github.com/curl/curl.git
synced 2026-08-01 19:40:32 +03:00
fix compiler warning
This commit is contained in:
parent
502da27d65
commit
a8ae8087c4
2 changed files with 4 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue