diff options
author | Yang Tse <yangsita@gmail.com> | 2012-03-16 19:06:34 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-03-16 19:06:34 +0100 |
commit | 8af4b657d0f44bd6f2b1d672666c046e53af0e0c (patch) | |
tree | e65809f4fb6fe2e4bde8449849025d39883efc83 /lib/connect.c | |
parent | 97386c3c84251ca6a185916b28e61c100a901c1a (diff) | |
download | curl-8af4b657d0f44bd6f2b1d672666c046e53af0e0c.tar.gz |
fix some compiler warnings
Diffstat (limited to 'lib/connect.c')
-rw-r--r-- | lib/connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c index 5747b0431..0affca288 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -95,7 +95,7 @@ static void tcpkeepalive(struct SessionHandle *data, int sockfd) { - int optval = data->set.tcp_keepalive; + int optval = data->set.tcp_keepalive?1:0; /* only set IDLE and INTVL if setting KEEPALIVE is successful */ if(setsockopt(sockfd, SOL_SOCKET, SO_KEEPALIVE, |