Small fixes

This commit is contained in:
amallia 2017-06-15 20:56:12 +01:00
parent 97cd8157f7
commit 3c32344a41
2 changed files with 1 additions and 3 deletions

View File

@ -1007,9 +1007,8 @@ void *redisvCommand(redisContext *c, const char *format, va_list ap) {
void *redisCommand(redisContext *c, const char *format, ...) { void *redisCommand(redisContext *c, const char *format, ...) {
va_list ap; va_list ap;
void *reply = NULL;
va_start(ap,format); va_start(ap,format);
reply = redisvCommand(c,format,ap); void *reply = redisvCommand(c,format,ap);
va_end(ap); va_end(ap);
return reply; return reply;
} }

1
net.c
View File

@ -143,7 +143,6 @@ int redisKeepAlive(redisContext *c, int interval) {
} }
#else #else
#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) #if defined(__GLIBC__) && !defined(__FreeBSD_kernel__)
val = interval;
if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &val, sizeof(val)) < 0) { if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &val, sizeof(val)) < 0) {
__redisSetError(c,REDIS_ERR_OTHER,strerror(errno)); __redisSetError(c,REDIS_ERR_OTHER,strerror(errno));
return REDIS_ERR; return REDIS_ERR;