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

Takashi Sakamoto o-takashi at sakamocchi.jp
Sun Apr 9 03:25:58 CEST 2017


On Apr 8 2017 14:14, varun sood wrote:
> 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

I note that the author contacted to me and I sent some instructions to 
post patches in better ways.


Regards

Takashi Sakamoto


More information about the Alsa-devel mailing list