resource-c: fixed a compiler warning.
authorIsmo Puustinen <ismo.puustinen@intel.com>
Mon, 22 Jul 2013 17:13:55 +0000 (20:13 +0300)
committerIsmo Puustinen <ismo.puustinen@intel.com>
Mon, 22 Jul 2013 17:13:55 +0000 (20:13 +0300)
src/plugins/resource-native/libmurphy-resource/resource.c

index 171fecf..a2ed7c9 100644 (file)
@@ -163,7 +163,7 @@ static void resource_event(mrp_msg_t *msg,
         }
 
         /* copy the attributes */
-        for (i = 0; i < n_attrs; i++) {
+        for (i = 0; (int) i < n_attrs; i++) {
             mrp_res_attribute_t *src = &attrs[i];
             mrp_res_attribute_t *dst = mrp_res_get_attribute_by_name(cx, res, src->name);