summaryrefslogtreecommitdiff
path: root/hiredis.c
diff options
context:
space:
mode:
Diffstat (limited to 'hiredis.c')
-rw-r--r--hiredis.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hiredis.c b/hiredis.c
index 80599db..9b74b5b 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -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;