From 7635b0fb9d7e1fa3344a1f6dbbaa9a82c17e19fc Mon Sep 17 00:00:00 2001 From: Ismo Puustinen Date: Tue, 3 Dec 2013 12:40:08 +0200 Subject: [PATCH] resource-asm: fix a compiler warning. Change-Id: I488e7cc84d350df25953dafa7a95240673ea7823 --- src/plugins/plugin-resource-asm.c | 2 +- src/plugins/resource-asm/asm-bridge.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/plugins/plugin-resource-asm.c b/src/plugins/plugin-resource-asm.c index ce6f5d8..b8cda70 100644 --- a/src/plugins/plugin-resource-asm.c +++ b/src/plugins/plugin-resource-asm.c @@ -1361,7 +1361,7 @@ static asm_to_lib_t *process_msg(lib_to_asm_t *msg, asm_data_t *ctx) def = mrp_resource_set_get_definition_by_binary(buf); if (def) { - effective_class = def->class_name; + effective_class = (char *) def->class_name; effective_priority = def->priority; effective_auto_release = def->auto_release; effective_dont_wait = def->dont_wait; diff --git a/src/plugins/resource-asm/asm-bridge.c b/src/plugins/resource-asm/asm-bridge.c index 1238283..f7d743d 100644 --- a/src/plugins/resource-asm/asm-bridge.c +++ b/src/plugins/resource-asm/asm-bridge.c @@ -145,7 +145,9 @@ static void *wait_queue (void *arg) { } /* alignment is fine, since the first argument to the struct is a long */ - write(fd, &msg, sizeof(ASM_msg_lib_to_asm_t)); + ret = write(fd, &msg, sizeof(ASM_msg_lib_to_asm_t)); + if (ret < 0) + log_write("error writing data to murphy"); } return NULL; -- 2.7.4