summaryrefslogtreecommitdiff
path: root/src/libunixonacid/unixmessage_sender_flush.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-14 01:52:58 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-14 01:52:58 +0000
commit2edb33dbe99c7b7e30904823da867f497a6acf65 (patch)
treedd0c994267bd9657e477f0a5499e6baad26bef01 /src/libunixonacid/unixmessage_sender_flush.c
parenta2b4cc9173db985699512c0954dd3a9b376f94c6 (diff)
downloadskalibs-2edb33dbe99c7b7e30904823da867f497a6acf65.tar.xz
Fix test of sendmsg return value (compare against int...)
Diffstat (limited to 'src/libunixonacid/unixmessage_sender_flush.c')
-rw-r--r--src/libunixonacid/unixmessage_sender_flush.c2
1 files changed, 1 insertions, 1 deletions
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)