summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/src/cli-cmd-parser.c6
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) {