aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tinymix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tinymix.c b/tinymix.c
index bf24a7c..0b834cb 100644
--- a/tinymix.c
+++ b/tinymix.c
@@ -29,6 +29,7 @@
#include <tinyalsa/asoundlib.h>
#include <stdio.h>
#include <stdlib.h>
+#include <ctype.h>
static void tinymix_list_controls(struct mixer *mixer);
static void tinymix_detail_control(struct mixer *mixer, unsigned int id);
@@ -89,7 +90,8 @@ static void tinymix_print_enum(struct mixer_ctl *ctl)
for (i = 0; i < num_enums; i++) {
mixer_ctl_get_enum_string(ctl, i, buffer, sizeof(buffer));
- printf("\t%s%s", mixer_ctl_get_value(ctl, 0) == i ? ">" : "", buffer);
+ printf("\t%s%s", mixer_ctl_get_value(ctl, 0) == (int)i ? ">" : "",
+ buffer);
}
}