From 2f5563ce7f342af8aee1b08a858c0f1da8e7b73e Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Sat, 25 Oct 2014 12:20:08 +0300 Subject: [PATCH] gam-resource-manager: get rid of a few compiler warnings. Change-Id: I05ae9b3b5d69ffd6b243312ac4ab8d5b2f6edf28 --- src/plugins/gam-resource-manager/backend.c | 2 +- src/plugins/gam-resource-manager/plugin-gam-resource-manager.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/plugins/gam-resource-manager/backend.c b/src/plugins/gam-resource-manager/backend.c index f49800f..44632e2 100644 --- a/src/plugins/gam-resource-manager/backend.c +++ b/src/plugins/gam-resource-manager/backend.c @@ -913,7 +913,7 @@ static int decision_cb(void *key, void *object, void *user_data) if (src && mrp_resmgr_source_add_resource(src,&ar->source_link)) { resource_print_name(src, ar->connno, buf, sizeof(buf)); - mrp_free(ar->name); + mrp_free((void *)ar->name); ar->name = mrp_strdup(buf); ar->source = src; diff --git a/src/plugins/gam-resource-manager/plugin-gam-resource-manager.c b/src/plugins/gam-resource-manager/plugin-gam-resource-manager.c index e4b73bf..bea3c62 100644 --- a/src/plugins/gam-resource-manager/plugin-gam-resource-manager.c +++ b/src/plugins/gam-resource-manager/plugin-gam-resource-manager.c @@ -323,7 +323,7 @@ static mrp_list_hook_t *get_priorities_for_application_class(gam_connect_t *ctx, arr = (char **) ret.array.items; - for (; i < ret.array.nitem; i++) { + for (; i < (int)ret.array.nitem; i++) { routing_target_t *target = mrp_allocz(sizeof(routing_target_t)); @@ -361,7 +361,7 @@ static mrp_list_hook_t *get_priorities_for_application_class(gam_connect_t *ctx, error: arr = (char **) ret.array.items; if (arr) { - for (; i < ret.array.nitem; i++) { + for (; i < (int)ret.array.nitem; i++) { mrp_free(arr[i]); } @@ -709,7 +709,6 @@ static int priority_setfield(lua_State *L) static void priority_destroy(void *data) { priority_t *prio = (priority_t *) data; - mrp_list_hook_t *p, *n; MRP_LUA_ENTER; -- 2.7.4