dccp_send.c: Fix type of "header_len" on x86_64
[paraslash.git] / dccp_send.c
index 738e9b6..4599dd3 100644 (file)
@@ -153,7 +153,7 @@ static void dccp_send(long unsigned current_chunk,
        struct dccp_client *dc, *tmp;
        int ret;
        char *header_buf;
-       size_t header_len;
+       unsigned header_len;
 
        if (listen_fd < 0 || !len)
                return;
@@ -172,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/%zu (%s)\n",
+                                       PARA_ERROR_LOG("header write: %d/%u (%s)\n",
                                                ret, header_len, ret < 0?
                                                strerror(err) : "");
                                        dccp_shutdown_client(dc);