]> git.tue.mpg.de Git - paraslash.git/commitdiff
Fix some format string warnings on Max OS
authorAndre <maan@p133.(none)>
Thu, 15 Jun 2006 08:23:20 +0000 (10:23 +0200)
committerAndre <maan@p133.(none)>
Thu, 15 Jun 2006 08:23:20 +0000 (10:23 +0200)
Trivial %d -> %zd conversions.

client_common.c
filter_chain.c

index a0128ad9b4508835caf4d11478b2e340b73118df..330c9f7028b9b67fbddaad39ec4dd843a8ec4d8d 100644 (file)
@@ -141,7 +141,7 @@ void client_pre_select(struct sched *s, struct task *t)
                return;
        case CL_SENDING_STDIN:
                if (*pcd->in_loaded) {
-                       PARA_INFO_LOG("loaded: %d\n", *pcd->in_loaded);
+                       PARA_INFO_LOG("loaded: %zd\n", *pcd->in_loaded);
                        para_fd_set(pcd->fd, &s->wfds, &s->max_fileno);
                        pcd->check_w = 1;
                } else {
@@ -278,7 +278,7 @@ void client_post_select(struct sched *s, struct task *t)
                        pcd->status = CL_RECEIVING_SERVER_OUTPUT;
                return;
        case CL_SENDING_STDIN: /* FIXME: might block */
-               PARA_INFO_LOG("loaded: %d\n", *pcd->in_loaded);
+               PARA_INFO_LOG("loaded: %zd\n", *pcd->in_loaded);
                t->ret = send_bin_buffer(pcd->fd, pcd->inbuf, *pcd->in_loaded);
                if (t->ret <= 0) {
                        if (!t->ret)
index 2d82a22c1c890865fa5d5c5c541b133872ed2471..dc601ec0a9de38ebd10d499f8df663dac1630ae3 100644 (file)
@@ -153,7 +153,7 @@ again:
                loaded = &fn->loaded;
        }
        conv_total += conv;
-       PARA_DEBUG_LOG("eof (in/out/fc): %d/%d/%d out_loaded: %d, "
+       PARA_DEBUG_LOG("eof (in/out/fc): %d/%d/%d out_loaded: %zd, "
                "conv: %d, conv_total: %d\n", *fc->input_eof,
                fc->output_eof? *fc->output_eof : -42,
                fc->eof, *fc->out_loaded, conv, conv_total);