All of lore.kernel.org
 help / color / mirror / Atom feed
From: soodvarun78@gmail.com
To: o-takashi@sakamocchi.jp
Cc: alsa-devel@alsa-project.org, varun <soodvarun78@gmail.com>
Subject: [PATCH] [alsa-lib] Removed compilation warning from test/namehint.c
Date: Sun,  9 Apr 2017 23:15:07 +0530	[thread overview]
Message-ID: <1491759907-10912-1-git-send-email-soodvarun78@gmail.com> (raw)

From: varun <soodvarun78@gmail.com>

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

Signed-off-by: varun <soodvarun78@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

             reply	other threads:[~2017-04-09 17:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-09 17:45 soodvarun78 [this message]
2017-04-10  7:31 ` [PATCH] [alsa-lib] Removed compilation warning from test/namehint.c Takashi Sakamoto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1491759907-10912-1-git-send-email-soodvarun78@gmail.com \
    --to=soodvarun78@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=o-takashi@sakamocchi.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.