utils: index is unsigned type
authorYannick Gicquel <yannick.gicquel@iot.bzh>
Fri, 23 Sep 2016 13:31:20 +0000 (15:31 +0200)
committerYannick Gicquel <yannick.gicquel@iot.bzh>
Tue, 11 Oct 2016 15:09:07 +0000 (17:09 +0200)
remove a warning (treated as error) to build correctly.

Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh>
utils.c

diff --git a/utils.c b/utils.c
index 6e18f83..6b29d8d 100644 (file)
--- a/utils.c
+++ b/utils.c
@@ -223,7 +223,7 @@ pa_sink *agl_utils_get_primary_alsa_sink (struct userdata *u)
 {
        pa_core *core;
        pa_sink *sink;
-       int idx;
+       uint32_t idx;
 
        pa_assert (u);
        pa_assert_se ((core = u->core));
@@ -240,7 +240,7 @@ pa_sink *agl_utils_get_alsa_sink (struct userdata *u, const char *name)
 {
        pa_core *core;
        pa_sink *sink;
-       int idx;
+       uint32_t idx;
 
        pa_assert (u);
        pa_assert_se ((core = u->core));