From a39af9c2923850ab9d49fb0c2e26629348d50f9b Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Tue, 22 Oct 2013 16:57:00 +0530 Subject: mgmt/snapshot: brick op for starting/stopping barrier Change-Id: Iafbd0ec95de0c41455fb79953fb4bb07721334a5 Signed-off-by: shishir gowda --- cli/src/cli-cmd-parser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli') diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index b05fad315..cf743e22b 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -3021,7 +3021,7 @@ cli_snap_list_parse (dict_t *dict, const char **words, int wordcount, int cmdi) " or volname specified is not equal 1"); goto out; } - snap_name = words[i]; // word followed by -s is snapname + snap_name = (char*) words[i]; // word followed by -s is snapname } else if (strcmp (words[i], "-c") == 0) { if ((wordcount - 1) == i || (cg_name != NULL) || strcmp (words[++i], "-d") == 0 @@ -3033,7 +3033,7 @@ cli_snap_list_parse (dict_t *dict, const char **words, int wordcount, int cmdi) " or cg_name already parsed"); goto out; } - cg_name = words[i]; + cg_name = (char*) words[i]; } else { if (vol_count != 0) { /* if vol names already set */ @@ -3093,7 +3093,7 @@ cli_snap_list_parse (dict_t *dict, const char **words, int wordcount, int cmdi) ret = dict_set_int64 (dict, "vol_count", vol_count); /* fill volume name in dictionary */ for (i = 0; i < vol_count; ++i) { - vol_name = words[vol_start_index + i]; + vol_name = (char*) words[vol_start_index + i]; snprintf (key, sizeof (key), "vol%d", i); ret = dict_set_str (dict, key, vol_name); if (ret) { -- cgit