diff options
author | shishir gowda <sgowda@redhat.com> | 2013-10-22 16:57:00 +0530 |
---|---|---|
committer | shishir gowda <sgowda@redhat.com> | 2013-10-23 19:19:45 +0530 |
commit | c535e3aadbb2e9e4d8387b03a72b7fae7f2bebd5 (patch) | |
tree | 18de07cba9ad630a21e9ae0fea8e6380e45ac11b /cli/src | |
parent | 846cdf3dfa81bca5160c3b566fdf1ad62d14115b (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')
-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 151aafdb9..915d08304 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -2924,7 +2924,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 @@ -2936,7 +2936,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 */ @@ -2996,7 +2996,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) { |