diff options
-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) |