aboutgitcodebugslistschat
path: root/tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'tcp.c')
-rw-r--r--tcp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tcp.c b/tcp.c
index edcabe2..10d9d0d 100644
--- a/tcp.c
+++ b/tcp.c
@@ -4069,9 +4069,8 @@ int tcp_prepare_iov(struct msghdr *msg, struct iovec *iov,
msg->msg_iov = iov + DISCARD_IOV_NUM;
msg->msg_iovlen = payload_iov_cnt;
} else {
- int discard_cnt, discard_iov_rem;
+ unsigned discard_cnt, discard_iov_rem, i;
struct iovec *iov_start;
- int i;
discard_cnt = DIV_ROUND_UP(already_sent, BUF_DISCARD_SIZE);
if (discard_cnt > DISCARD_IOV_NUM) {