Merge /fml/ag-raetsch/home/maan/scm/paraslash_meins/paraslash
authorAndre Noll <maan@systemlinux.org>
Mon, 11 Jun 2007 10:06:54 +0000 (12:06 +0200)
committerAndre Noll <maan@systemlinux.org>
Mon, 11 Jun 2007 10:06:54 +0000 (12:06 +0200)
command.c
dccp_send.c

index 2bd1019..69983c3 100644 (file)
--- a/command.c
+++ b/command.c
@@ -876,7 +876,7 @@ int handle_connect(int fd, struct sockaddr_in *addr)
        if (ret <= 0)
                goto err_out;
        numbytes = ret;
-       PARA_DEBUG_LOG("sending %d byte challenge\n", numbytes);
+       PARA_DEBUG_LOG("sending %zu byte challenge\n", numbytes);
        /* We can't use send_buffer here since buf may contain null bytes */
        ret = send_bin_buffer(fd,(char *) crypt_buf, numbytes);
        if (ret < 0)
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);