]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Fix some format string warnings on x86_64.
authorAndre Noll <maan@systemlinux.org>
Mon, 18 Jan 2010 09:28:33 +0000 (10:28 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 18 Jan 2010 09:28:33 +0000 (10:28 +0100)
audiod.c
client_common.c

index e1d9cbb28606d782a57b15c9794f1b5de950c8bc..1734c70357537cf942f1dad0172cd6167e454ba0 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -491,8 +491,8 @@ static void open_filters(struct slot_info *s)
                register_task(&fn->task);
                parent = fn->btrn;
                PARA_NOTICE_LOG("%s filter %d/%d (%s) started in slot %d\n",
-                       audio_formats[s->format], i,  nf, f->name, s - slot);
-               sprintf(fn->task.status, "%s (slot %d)", f->name, s - slot);
+                       audio_formats[s->format], i,  nf, f->name, (int)(s - slot));
+               sprintf(fn->task.status, "%s (slot %d)", f->name, (int)(s - slot));
        }
 }
 
index bd5a7bfba0cbce4dfeb9ac75ef5a523f5c6d6e5c..ded01b1388a629013f3be14bf4b31c876d97f512 100644 (file)
@@ -178,7 +178,7 @@ static void client_post_select(struct sched *s, struct task *t)
                ret = client_recv_buffer(ct, buf, sizeof(buf));
                if (ret < 0)
                        goto err;
-               PARA_INFO_LOG("<-- [challenge] (%zu bytes)\n", ret);
+               PARA_INFO_LOG("<-- [challenge] (%d bytes)\n", ret);
                ret = para_decrypt_buffer(ct->key_file, crypt_buf,
                        (unsigned char *)buf, ret);
                if (ret < 0)