Fix the invalid command type.
authorSung-jae Park <nicesj.park@samsung.com>
Tue, 12 May 2015 06:34:45 +0000 (15:34 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Tue, 12 May 2015 06:34:45 +0000 (15:34 +0900)
master to provider : "CMD_STR_NEW" and "CMD_NEW"

Change-Id: Ibf9ea0bb48158ed5217b902fa0bad97585771a33

src/slave_rpc.c

index ac8a389..8e95cb7 100644 (file)
@@ -542,12 +542,12 @@ HAPI int slave_rpc_update_handle(struct slave_node *slave, int handle, int delet
                                int cmd_idx;
 
                                cmd_idx = *((int *)cmd);
-                               if (cmd_idx == CMD_CREATED) {
+                               if (cmd_idx == CMD_NEW) {
                                        destroy_command(command);
                                } else {
                                        push_command(command);
                                }
-                       } else if (!strcmp(cmd, CMD_STR_CREATED)) {
+                       } else if (!strcmp(cmd, CMD_STR_NEW)) {
                                destroy_command(command);
                        } else {
                                push_command(command);