From f7328835303e5e554058ef9b4a32d5755f34096c Mon Sep 17 00:00:00 2001 From: michael-grunder Date: Wed, 23 Jul 2014 13:20:11 -0700 Subject: php_stream_gets is a char* return, not int --- cluster_library.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cluster_library.c') 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; } -- cgit v1.2.3