From: Jaroslav Kysela Date: Fri, 21 Mar 2025 08:42:35 +0000 (+0100) Subject: seq: shuffle calloc arguments in snd_seq_hw_open (gcc warning) X-Git-Tag: v1.2.14~18 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=fb285b366f8955c4c446779c81e3a5b3ecdf640d;p=alsa-lib.git seq: shuffle calloc arguments in snd_seq_hw_open (gcc warning) Signed-off-by: Jaroslav Kysela --- diff --git a/src/seq/seq_hw.c b/src/seq/seq_hw.c index 5e9b8953..fe9d9bc7 100644 --- a/src/seq/seq_hw.c +++ b/src/seq/seq_hw.c @@ -579,7 +579,7 @@ int snd_seq_hw_open(snd_seq_t **handle, const char *name, int streams, int mode) } } if (streams & SND_SEQ_OPEN_INPUT) { - seq->ibuf = (char *) calloc(sizeof(snd_seq_ump_event_t), seq->ibufsize = SND_SEQ_IBUF_SIZE); + seq->ibuf = (char *) calloc(seq->ibufsize = SND_SEQ_IBUF_SIZE, sizeof(snd_seq_ump_event_t)); if (!seq->ibuf) { free(seq->obuf); free(hw);