test/namehint.c: Removed compilation warning
A message that is not in the archive (sent off-list or not yet received): [email protected]
Removed compilation warning Changed hint variable from char ** to void ** to match function snd_device_name_hint
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; renamed from test/namehint.c +0 -0
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
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
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;
Quoted 4 lines · varun sood
Removed compilation warning Changed hint variable from char ** to void ** to match function
snd_device_name_hinttest/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; renamed from test/namehint.c +0
-0if (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