diff options
author | Andreas Schneider <asn@samba.org> | 2015-08-12 08:37:07 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2015-08-17 12:15:29 +0200 |
commit | 9434cdc6747b0837551bdd341d2f9b0f5479eb07 (patch) | |
tree | 76c80d2be70d764cae78770a1d1f10d81b539438 | |
parent | 6ece682ee36794aebd08503c60ecb1797c04849f (diff) | |
download | socket_wrapper-9434cdc6747b0837551bdd341d2f9b0f5479eb07.tar.gz socket_wrapper-9434cdc6747b0837551bdd341d2f9b0f5479eb07.tar.xz socket_wrapper-9434cdc6747b0837551bdd341d2f9b0f5479eb07.zip |
swrap: Fix signed comparsion warnings
Signed-off-by: Andreas Schneider <asn@samba.org>
-rw-r--r-- | src/socket_wrapper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c index 01ab8d5..12eb010 100644 --- a/src/socket_wrapper.c +++ b/src/socket_wrapper.c @@ -3799,7 +3799,7 @@ static ssize_t swrap_sendmsg_before(int fd, msg->msg_iovlen = i; if (msg->msg_iovlen == 0) { *tmp_iov = msg->msg_iov[0]; - tmp_iov->iov_len = MIN(tmp_iov->iov_len, mtu); + tmp_iov->iov_len = MIN(tmp_iov->iov_len, (size_t)mtu); msg->msg_iov = tmp_iov; msg->msg_iovlen = 1; } @@ -4016,7 +4016,7 @@ static int swrap_recvmsg_before(int fd, msg->msg_iovlen = i; if (msg->msg_iovlen == 0) { *tmp_iov = msg->msg_iov[0]; - tmp_iov->iov_len = MIN(tmp_iov->iov_len, mtu); + tmp_iov->iov_len = MIN(tmp_iov->iov_len, (size_t)mtu); msg->msg_iov = tmp_iov; msg->msg_iovlen = 1; } |