From 704109f80bb0bc7c1bbc26da515c43f18b5591b7 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sat, 21 Dec 2013 18:45:57 +0100 Subject: [PATCH] proto utils: Fixed invalid conversion of return value. Thanks to Travis CI for finding this! --- src/utils/proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2