Commit 441434c9 authored by Michael Jerris's avatar Michael Jerris

a few more little type tweaks

darcs-hash:20060920215741-16063-00ffdc9d96ba4a20f554595b1355b792f4743405.gz
parent aad167fd
......@@ -1940,7 +1940,7 @@ isize_t msg_iovec(msg_t *msg, msg_iovec_t vec[], isize_t veclen)
/* extend old entry */
len = h->sh_len;
if (vec)
vec[n-1].mv_len += len;
vec[n-1].mv_len += (u_long)len;
p += len;
}
......
......@@ -3172,9 +3172,9 @@ int tport_send_msg(tport_t *self, msg_t *msg,
for (i = 0, total = 0; i < iovused; i++) {
if (total + iov[i].mv_len > n) {
if (tport_is_connection_oriented(self)) {
iov[i].mv_len -= n - total;
iov[i].mv_len -= (u_long)(n - total);
iov[i].mv_base = (char *)iov[i].mv_base + (n - total);
if (tport_queue_rest(self, msg, &iov[i], iovused - i) >= 0)
if (tport_queue_rest(self, msg, &iov[i], (ssize_t)(iovused - i)) >= 0)
return n;
}
else {
......@@ -3574,7 +3574,7 @@ void tport_send_queue(tport_t *self)
size_t i, n, total;
msg_t *msg;
msg_iovec_t *iov;
int iovused;
size_t iovused;
unsigned short qhead = self->tp_qhead, N = self->tp_params->tpp_qsize;
su_time_t now;
......@@ -3600,7 +3600,7 @@ void tport_send_queue(tport_t *self)
for (i = 0, total = 0; i < iovused; i++) {
if (total + iov[i].mv_len > n) {
iov[i].mv_len -= n - total;
iov[i].mv_len -= (u_long)(n - total);
iov[i].mv_base = (char *)iov[i].mv_base + (n - total);
self->tp_unsent = iov + i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment