summaryrefslogtreecommitdiff
path: root/src/socket-proxy
diff options
context:
space:
mode:
authorDavid Strauss <david@davidstrauss.net>2013-10-31 15:30:49 -0700
committerDavid Strauss <david@davidstrauss.net>2013-10-31 15:30:49 -0700
commita42431ca6a66c5aaa80cf41dbd8220b0778688c0 (patch)
tree4cea21fefd5cf5c5426d7e87d02f0bf50045807b /src/socket-proxy
parent0885468d80e77758bd4c125d3686b68484ef77c4 (diff)
socket-proxyd: Actually, some of those sizes are unsigned.
Diffstat (limited to 'src/socket-proxy')
-rw-r--r--src/socket-proxy/socket-proxyd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/socket-proxy/socket-proxyd.c b/src/socket-proxy/socket-proxyd.c
index 34b1c15dfe..05ea88ac69 100644
--- a/src/socket-proxy/socket-proxyd.c
+++ b/src/socket-proxy/socket-proxyd.c
@@ -147,7 +147,7 @@ static int send_buffer(struct connection *sender) {
sender->buffer_sent_len += len;
}
- log_debug("send(%d, ...) completed with %zd bytes still buffered.", receiver->fd, sender->buffer_filled_len - sender->buffer_sent_len);
+ log_debug("send(%d, ...) completed with %zu bytes still buffered.", receiver->fd, sender->buffer_filled_len - sender->buffer_sent_len);
/* Detect a would-block state or partial send. */
if (sender->buffer_filled_len > sender->buffer_sent_len) {
@@ -206,7 +206,7 @@ static int transfer_data_cb(sd_event_source *s, int fd, uint32_t revents, void *
log_debug("Got event revents=%d from fd=%d (conn %p).", revents, fd, c);
if (revents & EPOLLIN) {
- log_debug("About to recv up to %zd bytes from fd=%d (%zd/BUFFER_SIZE).", BUFFER_SIZE - c->buffer_filled_len, fd, c->buffer_filled_len);
+ log_debug("About to recv up to %zu bytes from fd=%d (%zu/BUFFER_SIZE).", BUFFER_SIZE - c->buffer_filled_len, fd, c->buffer_filled_len);
/* Receive until the buffer's full, there's no more data,
* or the client/server disconnects. */
@@ -234,7 +234,7 @@ static int transfer_data_cb(sd_event_source *s, int fd, uint32_t revents, void *
assert(len > 0);
log_debug("Recording that the buffer got %zd more bytes full.", len);
c->buffer_filled_len += len;
- log_debug("Buffer now has %zd bytes full.", c->buffer_filled_len);
+ log_debug("Buffer now has %zu bytes full.", c->buffer_filled_len);
}
/* Try sending the data immediately. */