summaryrefslogtreecommitdiff
path: root/amixer
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2003-02-04 16:03:36 +0000
committerTakashi Iwai <tiwai@suse.de>2003-02-04 16:03:36 +0000
commitdfe70d8fbb760ee4d7b36e6ccf59ba592c6dd3db (patch)
tree1d1ed27bba912c90a3471f8b080cf0e27d9e8a07 /amixer
parentc8ae22ea692f12f19a6ab11473045294af72292f (diff)
downloadalsa-utils-dfe70d8fbb760ee4d7b36e6ccf59ba592c6dd3db.tar.gz
- fixed compile warnings on gcc3.3.
Diffstat (limited to 'amixer')
-rw-r--r--amixer/amixer.c8
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++;
}