From: Sebastian Harl Date: Sat, 21 Dec 2013 17:45:57 +0000 (+0100) Subject: proto utils: Fixed invalid conversion of return value. X-Git-Tag: sysdb-0.1.0~297 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=704109f80bb0bc7c1bbc26da515c43f18b5591b7;p=sysdb.git proto utils: Fixed invalid conversion of return value. Thanks to Travis CI for finding this! --- diff --git a/src/utils/proto.c b/src/utils/proto.c index 404d2a3..26c4826 100644 --- a/src/utils/proto.c +++ b/src/utils/proto.c @@ -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; }