]> git.ipfire.org Git - thirdparty/systemd.git/commit
run: use a "named namespace" also for the main option parser
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Tue, 28 Apr 2026 06:11:40 +0000 (08:11 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Tue, 28 Apr 2026 15:13:24 +0000 (17:13 +0200)
commit0a85be9ccf1bdd0fb19caf1178958f243c6fc9ee
tree16c5c915b064835669323ed6105c59a3b594f37a
parent03a58fe2517a8015ba83eb9db87e69d60f9a0438
run: use a "named namespace" also for the main option parser

It seems that clang reorders the entries in the options array that
originate from different functions, but not within a function. Using
"named namespaces" exclusively should sidestep the issue.

(A bigger hammer would be to sort the array. We *can* do this, since the
options have the increasing .id field. But that'd require duplicating
the memory or making it writable. Let's avoid this until we know for
sure that it's needed.)
src/run/run.c
src/shared/options.h