From 2edb33dbe99c7b7e30904823da867f497a6acf65 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 14 Dec 2014 01:52:58 +0000 Subject: Fix test of sendmsg return value (compare against int...) --- src/libunixonacid/unixmessage_sender_flush.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libunixonacid/unixmessage_sender_flush.c b/src/libunixonacid/unixmessage_sender_flush.c index ab8d460..5c5ad2b 100644 --- a/src/libunixonacid/unixmessage_sender_flush.c +++ b/src/libunixonacid/unixmessage_sender_flush.c @@ -60,7 +60,7 @@ int unixmessage_sender_flush (unixmessage_sender_t *b) ((int *)CMSG_DATA(cp))[i] = fd < 0 ? -(fd+1) : fd ; } } - if (sendmsg(b->fd, &hdr, MSG_NOSIGNAL) < len + (sizeof(unsigned int) << 1)) + if (sendmsg(b->fd, &hdr, MSG_NOSIGNAL) < (int)(len + (sizeof(unsigned int) << 1))) return -(int)(b->head-oldhead)-1 ; #ifndef SKALIBS_HASANCILAUTOCLOSE if (nfds) -- cgit v1.2.3