summaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'net.c')
-rw-r--r--net.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net.c b/net.c
index 024f645..53e59ef 100644
--- a/net.c
+++ b/net.c
@@ -143,7 +143,6 @@ int redisKeepAlive(redisContext *c, int interval) {
}
#else
#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__)
- val = interval;
if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &val, sizeof(val)) < 0) {
__redisSetError(c,REDIS_ERR_OTHER,strerror(errno));
return REDIS_ERR;