dccp_send.c: Fix type of "header_len" on x86_64
authorAndre Noll <maan@systemlinux.org>
Fri, 1 Jun 2007 09:53:11 +0000 (11:53 +0200)
committerAndre Noll <maan@systemlinux.org>
Fri, 1 Jun 2007 09:53:11 +0000 (11:53 +0200)
vss_get_header wants an unsigned, not a size_t. Fixes

dccp_send.c:170: warning: passing arg 1 of `vss_get_header' from incompatible pointer type

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);