]> git.saurik.com Git - redis.git/commitdiff
ignore gcc warning about write() return code not checked. It is esplicitily this...
authorantirez <antirez@gmail.com>
Tue, 26 May 2009 14:45:57 +0000 (16:45 +0200)
committerantirez <antirez@gmail.com>
Tue, 26 May 2009 14:45:57 +0000 (16:45 +0200)
redis.c

diff --git a/redis.c b/redis.c
index 63ae4948baebf95f2d090156dc87e9f09842ef1a..5ced9a29b605ad0819c3e7464731603097dce388 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -1528,7 +1528,7 @@ static void acceptHandler(aeEventLoop *el, int fd, void *privdata, int mask) {
         char *err = "-ERR max number of clients reached\r\n";
 
         /* That's a best effort error message, don't check write errors */
         char *err = "-ERR max number of clients reached\r\n";
 
         /* That's a best effort error message, don't check write errors */
-        write(c->fd,err,strlen(err));
+        (void)write(c->fd,err,strlen(err));
         freeClient(c);
         return;
     }
         freeClient(c);
         return;
     }