mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-21 19:56:31 +01:00
Fix misc compile warnings in alsactl
alsactl.c:166: warning: assignment from incompatible pointer type init_utils_string.c:21: warning: ‘string_is_true’ defined but not used Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
c1bc8d61dd
commit
08837a80e0
2 changed files with 2 additions and 12 deletions
|
@ -97,7 +97,8 @@ int main(int argc, char *argv[])
|
|||
};
|
||||
char *cfgfile = SYS_ASOUNDRC;
|
||||
char *initfile = DATADIR "/init/00main";
|
||||
char *cardname, **tmp, ncardname[16];
|
||||
char *cardname, ncardname[16];
|
||||
const char *const *tmp;
|
||||
int removestate = 0;
|
||||
int init_fallback = 1; /* new default behavior */
|
||||
int res;
|
||||
|
|
|
@ -17,17 +17,6 @@
|
|||
*/
|
||||
|
||||
|
||||
static int string_is_true(const char *str)
|
||||
{
|
||||
if (strcasecmp(str, "true") == 0)
|
||||
return 1;
|
||||
if (strcasecmp(str, "yes") == 0)
|
||||
return 1;
|
||||
if (strcasecmp(str, "1") == 0)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void remove_trailing_chars(char *path, char c)
|
||||
{
|
||||
size_t len;
|
||||
|
|
Loading…
Reference in a new issue