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

varun sood soodvarun78 at yahoo.co.in
Sat Apr 8 07:14:51 CEST 2017


Removed compilation warning 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.cindex 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