mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
Fix compile warnings with gcc-4
Fixed compile warnings with gcc-4 about pointer signedness.
This commit is contained in:
parent
0350a615b7
commit
7a89e3bbca
17 changed files with 69 additions and 71 deletions
|
|
@ -130,7 +130,7 @@ int snd_card_get_index(const char *string)
|
|||
continue;
|
||||
}
|
||||
snd_ctl_close(handle);
|
||||
if (!strcmp(info.id, string))
|
||||
if (!strcmp((const char *)info.id, string))
|
||||
return card;
|
||||
}
|
||||
return -ENODEV;
|
||||
|
|
@ -157,7 +157,7 @@ int snd_card_get_name(int card, char **name)
|
|||
return err;
|
||||
}
|
||||
snd_ctl_close(handle);
|
||||
*name = strdup(info.name);
|
||||
*name = strdup((const char *)info.name);
|
||||
if (*name == NULL)
|
||||
return -ENOMEM;
|
||||
return 0;
|
||||
|
|
@ -184,7 +184,7 @@ int snd_card_get_longname(int card, char **name)
|
|||
return err;
|
||||
}
|
||||
snd_ctl_close(handle);
|
||||
*name = strdup(info.longname);
|
||||
*name = strdup((const char *)info.longname);
|
||||
if (*name == NULL)
|
||||
return -ENOMEM;
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue