diff options
author | amallia <me@antoniomallia.it> | 2017-06-15 20:56:12 +0100 |
---|---|---|
committer | amallia <me@antoniomallia.it> | 2017-06-15 20:59:37 +0100 |
commit | 3c32344a41b1c9a7d6daccc2c54cf70b4dfd4d5b (patch) | |
tree | 22cbcd7fb62507192413961282bb6a03107f62c3 | |
parent | 97cd8157f74674c722dd30360caac1f498fa72ef (diff) |
Small fixes
-rw-r--r-- | hiredis.c | 3 | ||||
-rw-r--r-- | net.c | 1 |
2 files changed, 1 insertions, 3 deletions
@@ -1007,9 +1007,8 @@ void *redisvCommand(redisContext *c, const char *format, va_list ap) { void *redisCommand(redisContext *c, const char *format, ...) { va_list ap; - void *reply = NULL; va_start(ap,format); - reply = redisvCommand(c,format,ap); + void *reply = redisvCommand(c,format,ap); va_end(ap); return reply; } @@ -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; |