1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-27 07:22:31 +03:00

core/execute: use FOREACH_ARRAY in one more place

This commit is contained in:
Mike Yuan 2023-10-08 13:35:30 +08:00
parent 3c1f396f69
commit 59026bccd0
No known key found for this signature in database
GPG Key ID: 417471C0A40F58B3

View File

@ -5259,8 +5259,8 @@ void exec_context_init(ExecContext *c) {
.memory_ksm = -1, .memory_ksm = -1,
}; };
for (ExecDirectoryType t = 0; t < _EXEC_DIRECTORY_TYPE_MAX; t++) FOREACH_ARRAY(d, c->directories, _EXEC_DIRECTORY_TYPE_MAX)
c->directories[t].mode = 0755; d->mode = 0755;
numa_policy_reset(&c->numa_policy); numa_policy_reset(&c->numa_policy);