resource-asm: fix a compiler warning.
authorIsmo Puustinen <ismo.puustinen@intel.com>
Tue, 3 Dec 2013 10:40:08 +0000 (12:40 +0200)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 8 Jan 2015 16:37:12 +0000 (18:37 +0200)
Change-Id: I488e7cc84d350df25953dafa7a95240673ea7823

src/plugins/plugin-resource-asm.c
src/plugins/resource-asm/asm-bridge.c

index ce6f5d8..b8cda70 100644 (file)
@@ -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;
index 1238283..f7d743d 100644 (file)
@@ -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;