be more carful wrt. signed vs. unsigned argument passing
[paraslash.git] / dccp_send.c
index e4b5087..738e9b6 100644 (file)
@@ -151,8 +151,9 @@ static void dccp_send(long unsigned current_chunk,
                __a_unused long unsigned chunks_sent, const char *buf, size_t len)
 {
        struct dccp_client *dc, *tmp;
-       int ret, header_len;
+       int ret;
        char *header_buf;
+       size_t header_len;
 
        if (listen_fd < 0 || !len)
                return;
@@ -171,7 +172,7 @@ static void dccp_send(long unsigned current_chunk,
                                ret = dccp_write(dc->fd, header_buf, header_len);
                                if (ret != header_len) {
                                        int err = errno;
-                                       PARA_ERROR_LOG("header write: %d/%d (%s)\n",
+                                       PARA_ERROR_LOG("header write: %d/%zu (%s)\n",
                                                ret, header_len, ret < 0?
                                                strerror(err) : "");
                                        dccp_shutdown_client(dc);