diff options
author | Takashi Iwai <tiwai@suse.de> | 2003-02-04 16:03:36 +0000 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2003-02-04 16:03:36 +0000 |
commit | dfe70d8fbb760ee4d7b36e6ccf59ba592c6dd3db (patch) | |
tree | 1d1ed27bba912c90a3471f8b080cf0e27d9e8a07 /amixer | |
parent | c8ae22ea692f12f19a6ab11473045294af72292f (diff) | |
download | alsa-utils-dfe70d8fbb760ee4d7b36e6ccf59ba592c6dd3db.tar.gz |
- fixed compile warnings on gcc3.3.
Diffstat (limited to 'amixer')
-rw-r--r-- | amixer/amixer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/amixer/amixer.c b/amixer/amixer.c index 1b12eed..46c3d43 100644 --- a/amixer/amixer.c +++ b/amixer/amixer.c @@ -836,7 +836,7 @@ static int parse_control_id(const char *str, snd_ctl_elem_id_t *id) if (*str == '\'' || *str == '\"') { c = *str++; while (*str && *str != c) { - if (size < sizeof(buf)) { + if (size < (int)sizeof(buf)) { *ptr++ = *str; size++; } @@ -846,7 +846,7 @@ static int parse_control_id(const char *str, snd_ctl_elem_id_t *id) str++; } else { while (*str && *str != ',') { - if (size < sizeof(buf)) { + if (size < (int)sizeof(buf)) { *ptr++ = *str; size++; } @@ -894,7 +894,7 @@ static int parse_simple_id(const char *str, snd_mixer_selem_id_t *sid) size = 1; /* for '\0' */ if (*str != '"' && *str != '\'') { while (*str && *str != ',') { - if (size < sizeof(buf)) { + if (size < (int)sizeof(buf)) { *ptr++ = *str; size++; } @@ -903,7 +903,7 @@ static int parse_simple_id(const char *str, snd_mixer_selem_id_t *sid) } else { c = *str++; while (*str && *str != c) { - if (size < sizeof(buf)) { + if (size < (int)sizeof(buf)) { *ptr++ = *str; size++; } |