diff options
author | Simon Wilson <simonwilson@google.com> | 2011-06-06 10:57:22 -0700 |
---|---|---|
committer | Simon Wilson <simonwilson@google.com> | 2011-06-06 10:57:22 -0700 |
commit | c6f3e464f5e1d2f5c0f225ef9059674bd109036e (patch) | |
tree | a675cd2d4c05f0fd94cb03bd58bfa68c2aa26e98 | |
parent | f0a20ee4ccbba5504bd87397fcf9d9a89467208d (diff) |
tinymix: fix compilation warnings
-rw-r--r-- | tinymix.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); } } |