File 0015-Fix-compile-warnings.patch of Package alsa

From 75194776a79ddd23b764138dc7c3a2e224b439a0 Mon Sep 17 00:00:00 2001
From: Takashi Iwai <tiwai@suse.de>
Date: Wed, 4 May 2011 09:14:29 +0200
Subject: [PATCH 15/23] Fix compile warnings
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

strstr() returns a char pointer

simple_none.c: In function ‘base_len’:
simple_none.c:940:33: warning: ordered comparison of pointer with integer zero
simple_none.c:941:29: warning: ordered comparison of pointer with integer zero

Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 src/mixer/simple_none.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mixer/simple_none.c b/src/mixer/simple_none.c
index 395e4d6..b11e9e8 100644
--- a/src/mixer/simple_none.c
+++ b/src/mixer/simple_none.c
@@ -937,8 +937,8 @@ static int base_len(const char *name, selem_ctl_type_t *type)
 		*type = CTL_CAPTURE_ROUTE;
 		return strlen(name);
 	}
-	if (strstr(name, "3D Control") > 0) {
-		if (strstr(name, "Depth") > 0) {
+	if (strstr(name, "3D Control")) {
+		if (strstr(name, "Depth")) {
 			*type = CTL_PLAYBACK_VOLUME;
 			return strlen(name);
 		}
-- 
1.7.5.3

openSUSE Build Service is sponsored by