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:
+3
-3
@@ -1964,11 +1964,11 @@ static int setup_hostname(void) {
|
||||
}
|
||||
|
||||
static int setup_journal(const char *directory) {
|
||||
sd_id128_t this_id;
|
||||
_cleanup_free_ char *d = NULL;
|
||||
const char *p, *q;
|
||||
const char *dirname, *p, *q;
|
||||
sd_id128_t this_id;
|
||||
char id[33];
|
||||
bool try;
|
||||
char id[33], *dirname;
|
||||
int r;
|
||||
|
||||
/* Don't link journals in ephemeral mode */
|
||||
|
||||
Reference in New Issue
Block a user