Code

proto utils: Fixed invalid conversion of return value.
authorSebastian Harl <sh@tokkee.org>
Sat, 21 Dec 2013 17:45:57 +0000 (18:45 +0100)
committerSebastian Harl <sh@tokkee.org>
Sat, 21 Dec 2013 17:45:57 +0000 (18:45 +0100)
Thanks to Travis CI for finding this!

src/utils/proto.c

index 404d2a3..26c4826 100644 (file)
@@ -80,7 +80,7 @@ sdb_proto_select(int fd, int type)
                n = select(fd + 1, readfds, writefds, exceptfds, NULL);
 
                if ((n < 0) && (errno != EINTR))
-                       return (ssize_t)n;
+                       return n;
                if (n > 0)
                        break;
        }