diff options
Diffstat (limited to 'hiredis.c')
-rw-r--r-- | hiredis.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1025,7 +1025,7 @@ redisContext *redisConnect(const char *ip, int port) { return c; } -redisContext *redisConnectWithTimeout(const char *ip, int port, struct timeval tv) { +redisContext *redisConnectWithTimeout(const char *ip, int port, const struct timeval tv) { redisContext *c; c = redisContextInit(); @@ -1061,7 +1061,7 @@ redisContext *redisConnectUnix(const char *path) { return c; } -redisContext *redisConnectUnixWithTimeout(const char *path, struct timeval tv) { +redisContext *redisConnectUnixWithTimeout(const char *path, const struct timeval tv) { redisContext *c; c = redisContextInit(); @@ -1086,7 +1086,7 @@ redisContext *redisConnectUnixNonBlock(const char *path) { } /* Set read/write timeout on a blocking socket. */ -int redisSetTimeout(redisContext *c, struct timeval tv) { +int redisSetTimeout(redisContext *c, const struct timeval tv) { if (c->flags & REDIS_BLOCK) return redisContextSetTimeout(c,tv); return REDIS_ERR; |