From b5b756d70e01cd626abaf02e3a42e34f041b6143 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Fri, 2 Nov 2018 19:17:52 +0200 Subject: fix warnings --- src/pcm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pcm.c b/src/pcm.c index 3a28b37..c75da1a 100644 --- a/src/pcm.c +++ b/src/pcm.c @@ -369,7 +369,7 @@ io_do(snd_pcm_t *pcm, const void *buffer, const size_t frames, size_t (*io)(stru const size_t enc_frames = sizeof(encoded) / (params[1].bps * chans); const size_t max_frames = MIN(dec_frames, enc_frames); for (const unsigned char *p = buffer; total_frames > 0;) { - const int todo_frames = MIN(max_frames, total_frames); + const size_t todo_frames = MIN(max_frames, total_frames); assert(todo_frames <= total_frames); total_frames -= todo_frames; @@ -523,7 +523,7 @@ int snd_pcm_prepare(snd_pcm_t *pcm) { if (!pcm->started && sio_start(pcm->hdl)) { - WARNX("started"); + WARNX1("started"); pcm->started = true; pcm->written = pcm->position = 0; pcm->avail = pcm->hw.par.bufsz; @@ -543,7 +543,7 @@ int snd_pcm_drain(snd_pcm_t *pcm) { if (pcm->started && sio_stop(pcm->hdl)) { - WARNX("stopped"); + WARNX1("stopped"); pcm->started = false; pcm->written = pcm->position = 0; pcm->avail = 0; -- cgit v1.2.3