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 404d2a30ec5d2dabd270ab393bd9e262ec429017..26c4826a7f949a003d67932bd283cc59eff2befd 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;
        }