utils: index is unsigned type
[staging/agl-audio-plugin.git] / utils.c
diff --git a/utils.c b/utils.c
index a841e2c..6b29d8d 100644 (file)
--- a/utils.c
+++ b/utils.c
@@ -92,7 +92,7 @@ void agl_utils_destroy_null_sink (struct userdata *u, agl_null_sink *ns)
        if (u && (core = u->core)) {
                if ((module = pa_idxset_get_by_index (core->modules, ns->module_index))){
                        pa_log_info ("unloading null sink '%s'", ns->name);
-                       pa_module_unload (core, module, false);
+                       pa_module_unload (module, false);
                }
 
                pa_xfree (ns->name);
@@ -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));