diff options
author | michael-grunder <michael.grunder@gmail.com> | 2014-07-24 00:20:11 +0400 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2015-05-06 01:05:29 +0300 |
commit | f7328835303e5e554058ef9b4a32d5755f34096c (patch) | |
tree | f044aa042de299c78fb92b653b2f4f763680fc88 /cluster_library.c | |
parent | c88cb399cee90b2291b288e8fa51bd9f7af190b3 (diff) |
php_stream_gets is a char* return, not int
Diffstat (limited to 'cluster_library.c')
-rw-r--r-- | cluster_library.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cluster_library.c b/cluster_library.c index 0d202dc8..33073172 100644 --- a/cluster_library.c +++ b/cluster_library.c @@ -748,7 +748,7 @@ static int cluster_send_asking(RedisSock *redis_sock TSRMLS_DC) } // Consume the rest of our response - if(php_stream_gets(redis_sock->stream, buf, sizeof(buf)<0)) { + if(!php_stream_gets(redis_sock->stream, buf, sizeof(buf))) { return -1; } @@ -940,7 +940,7 @@ static int cluster_check_response(redisCluster *c, unsigned short slot, int moved; // Attempt to read the error - if(php_stream_gets(SLOT_STREAM(c,slot), inbuf, sizeof(inbuf))<0) { + if(!php_stream_gets(SLOT_STREAM(c,slot), inbuf, sizeof(inbuf))) { return -1; } |