commit 2edb33dbe99c7b7e30904823da867f497a6acf65 parent a2b4cc9173db985699512c0954dd3a9b376f94c6 Author: Laurent Bercot <ska-skaware@skarnet.org> Date: Sun, 14 Dec 2014 01:52:58 +0000 Fix test of sendmsg return value (compare against int...) Diffstat:
M | src/libunixonacid/unixmessage_sender_flush.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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)