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
+1 -1
View File
@@ -131,7 +131,7 @@ static bool check_user_has_group_with_same_name(const char *name) {
}
static bool is_inaccessible_available(void) {
char *p;
const char *p;
FOREACH_STRING(p,
"/run/systemd/inaccessible/reg",