mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Fix compile warnings
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>
This commit is contained in:
parent
808ce5deb3
commit
75194776a7
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue