summaryrefslogtreecommitdiff
path: root/hiredis.c
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2010-11-03 11:12:26 +0100
committerPieter Noordhuis <pcnoordhuis@gmail.com>2010-11-03 11:31:33 +0100
commit0ccb2c8d890753fcd6524545646f34274d977b9c (patch)
treea492b01b147a5b40f6be0ed2435cbae7275bc4dd /hiredis.c
parent8220cd4ba6539033a2744d5c34daa0757196bf14 (diff)
Add functiont to net.c to connect to a unix socket
Diffstat (limited to 'hiredis.c')
-rw-r--r--hiredis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hiredis.c b/hiredis.c
index 471483e..e06e837 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -655,7 +655,7 @@ redisContext *redisConnect(const char *ip, int port) {
redisContext *c = redisContextInit();
c->flags |= REDIS_BLOCK;
c->flags |= REDIS_CONNECTED;
- redisContextConnect(c,ip,port);
+ redisContextConnectTcp(c,ip,port);
return c;
}
@@ -663,7 +663,7 @@ redisContext *redisConnectNonBlock(const char *ip, int port) {
redisContext *c = redisContextInit();
c->flags &= ~REDIS_BLOCK;
c->flags |= REDIS_CONNECTED;
- redisContextConnect(c,ip,port);
+ redisContextConnectTcp(c,ip,port);
return c;
}