summaryrefslogtreecommitdiff
path: root/lib/socket_wrapper
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2015-08-25 17:21:05 +0200
committerAndreas Schneider <asn@cryptomilk.org>2015-09-08 13:47:20 +0200
commit5bd1ec1037339fbcf372fad10f7adbd6fd89927c (patch)
treea028c19a2b8e3f28d7b4d5f65281fb2df2795e35 /lib/socket_wrapper
parent830e3dd14f363620d153e66e23978c4738c919f0 (diff)
downloadsamba-5bd1ec1037339fbcf372fad10f7adbd6fd89927c.tar.gz
swrap: Fix signed comparsion warnings
Signed-off-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'lib/socket_wrapper')
-rw-r--r--lib/socket_wrapper/socket_wrapper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/socket_wrapper/socket_wrapper.c b/lib/socket_wrapper/socket_wrapper.c
index 01ab8d52d38..12eb010ae2a 100644
--- a/lib/socket_wrapper/socket_wrapper.c
+++ b/lib/socket_wrapper/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;
}