[alsa-devel] [PATCH] [alsa-lib] Removed compilation warning from test/namehint.c

soodvarun78 at gmail.com soodvarun78 at gmail.com
Sun Apr 9 19:45:07 CEST 2017


From: varun <soodvarun78 at gmail.com>

Changed hint variable from char ** to void ** to match function snd_device_name_hint

Signed-off-by: varun <soodvarun78 at gmail.com>
---
 test/namehint.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/namehint.c b/test/namehint.c
index e978d5c..18bad1d 100644
--- a/test/namehint.c
+++ b/test/namehint.c
@@ -4,7 +4,8 @@
 int main(int argc, char *argv[])
 {
 	const char *iface = "pcm";
-	char **hints, **n;
+	void **hints;
+	char **n;
 	int err;
 
 	if (argc > 1)
@@ -12,7 +13,7 @@ int main(int argc, char *argv[])
 	err = snd_device_name_hint(-1, iface, &hints);
 	if (err < 0)
 		errx(1, "snd_device_name_hint error: %s", snd_strerror(err));
-	n = hints;
+	n = (char **)hints;
 	while (*n != NULL) {
 		printf("%s\n", *n);
 		n++;
-- 
1.9.1



More information about the Alsa-devel mailing list