diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-14 01:52:58 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-14 01:52:58 +0000 |
commit | 2edb33dbe99c7b7e30904823da867f497a6acf65 (patch) | |
tree | dd0c994267bd9657e477f0a5499e6baad26bef01 /src/libunixonacid | |
parent | a2b4cc9173db985699512c0954dd3a9b376f94c6 (diff) | |
download | skalibs-2edb33dbe99c7b7e30904823da867f497a6acf65.tar.xz |
Fix test of sendmsg return value (compare against int...)
Diffstat (limited to 'src/libunixonacid')
-rw-r--r-- | src/libunixonacid/unixmessage_sender_flush.c | 2 |
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) |