From 8af4b657d0f44bd6f2b1d672666c046e53af0e0c Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 16 Mar 2012 19:06:34 +0100 Subject: fix some compiler warnings --- lib/connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/connect.c') 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, -- cgit v1.2.1