diff options
author | Yang Tse <yangsita@gmail.com> | 2008-01-13 04:39:32 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-01-13 04:39:32 +0000 |
commit | a8ae8087c4a99f6840d822fd1fcba3c71e59b718 (patch) | |
tree | 1c829615d2b62134336297c0ca6f81949af96b1b /src | |
parent | 502da27d65f368258389e7b165b38672d9d9c9b7 (diff) |
fix compiler warning
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 4f88cb2d4..1b0036bcd 100644 --- a/src/main.c +++ b/src/main.c @@ -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: |