From e1cf532cb70722ae80f2364ff1d7cfbf126f4caf Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 18 Jan 2010 10:28:33 +0100 Subject: [PATCH] Fix some format string warnings on x86_64. --- audiod.c | 4 ++-- client_common.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/audiod.c b/audiod.c index e1d9cbb2..1734c703 100644 --- 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)); } } diff --git a/client_common.c b/client_common.c index bd5a7bfb..ded01b13 100644 --- a/client_common.c +++ b/client_common.c @@ -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) -- 2.39.5