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:
Takashi Iwai 2009-02-18 15:34:57 +01:00
parent c1bc8d61dd
commit 08837a80e0
2 changed files with 2 additions and 12 deletions

View file

@ -97,7 +97,8 @@ int main(int argc, char *argv[])
}; };
char *cfgfile = SYS_ASOUNDRC; char *cfgfile = SYS_ASOUNDRC;
char *initfile = DATADIR "/init/00main"; char *initfile = DATADIR "/init/00main";
char *cardname, **tmp, ncardname[16]; char *cardname, ncardname[16];
const char *const *tmp;
int removestate = 0; int removestate = 0;
int init_fallback = 1; /* new default behavior */ int init_fallback = 1; /* new default behavior */
int res; int res;

View file

@ -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) static void remove_trailing_chars(char *path, char c)
{ {
size_t len; size_t len;