]> git.alsa-project.org Git - alsa-lib.git/commitdiff
test: oldapi - fix the clang-16 compilation error
authorJaroslav Kysela <perex@perex.cz>
Tue, 22 Aug 2023 14:51:39 +0000 (16:51 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 22 Aug 2023 14:52:15 +0000 (16:52 +0200)
Fixes: https://github.com/alsa-project/alsa-lib/issues/323
From: Fabio Scaccabarozzi
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
test/oldapi.c

index 7abc98e04f06f4dfd4cb944090fbf3c5b69aaba3..82450478cded0eca99565deb7b01e077da7a2abf 100644 (file)
@@ -31,7 +31,7 @@
 #include "../include/asoundlib.h"
 #include <sys/time.h>
 
-typedef void (myfcn)(void *);
+typedef int (myfcn)(const snd_pcm_hw_params_t *);
 
 int main(int argc ATTRIBUTE_UNUSED, char *argv[] ATTRIBUTE_UNUSED)
 {