test,systemctl,nspawn: use "const char*" instead of "char*" as iterator for FOREACH_STRING()

The macro iterates through literal strings (i.e. constant strings),
hence it's more correct to have the iterator const too.
This commit is contained in:
Lennart Poettering
2019-01-16 12:29:30 +01:00
parent 2732587540
commit b2238e380e
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -6933,9 +6933,9 @@ static int run_editor(char **paths) {
if (r < 0)
return r;
if (r == 0) {
char **editor_args = NULL, **tmp_path, **original_path, *p;
char **editor_args = NULL, **tmp_path, **original_path;
size_t n_editor_args = 0, i = 1, argc;
const char **args, *editor;
const char **args, *editor, *p;
argc = strv_length(paths)/2 + 1;