From 7d4a99d4392a7aba040c76b196c7dc64c75eeb3f Mon Sep 17 00:00:00 2001 From: Sung-jae Park Date: Tue, 12 May 2015 15:34:45 +0900 Subject: [PATCH] Fix the invalid command type. master to provider : "CMD_STR_NEW" and "CMD_NEW" Change-Id: Ibf9ea0bb48158ed5217b902fa0bad97585771a33 --- src/slave_rpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slave_rpc.c b/src/slave_rpc.c index ac8a389..8e95cb7 100644 --- a/src/slave_rpc.c +++ b/src/slave_rpc.c @@ -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); -- 2.7.4