diff options
author | shishir gowda <sgowda@redhat.com> | 2013-10-22 16:57:00 +0530 |
---|---|---|
committer | shishir gowda <sgowda@redhat.com> | 2013-11-15 12:48:08 +0530 |
commit | a39af9c2923850ab9d49fb0c2e26629348d50f9b (patch) | |
tree | a94fd6197db9b169520c8df53fed384dbccf8715 /cli/src/cli-cmd-parser.c | |
parent | 8b5a3ef2f5363abd4e4d8d49c067cba8e4df8fdd (diff) |
mgmt/snapshot: brick op for starting/stopping barrier
Change-Id: Iafbd0ec95de0c41455fb79953fb4bb07721334a5
Signed-off-by: shishir gowda <sgowda@redhat.com>
Diffstat (limited to 'cli/src/cli-cmd-parser.c')
-rw-r--r-- | cli/src/cli-cmd-parser.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |