diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-01-11 13:23:27 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-01-11 13:39:52 +0100 |
commit | 56a5f4969b96529c82ec8cc08db4fa8e9c61e7b9 (patch) | |
tree | 3436e37ad5b3a914face20185a1453db6cb3bbae /src/nss-mymachines/nss-mymachines.c | |
parent | boot: Fix readdir_harder() on VirtualBox (diff) | |
download | systemd-56a5f4969b96529c82ec8cc08db4fa8e9c61e7b9.tar.xz systemd-56a5f4969b96529c82ec8cc08db4fa8e9c61e7b9.zip |
nss: drop dummy setup_logging() helpers
log_parse_environment() stopped being a macro in 9fdee66f2d9.
As reported by @bauen1 in https://github.com/systemd/systemd/issues/22020,
the comment was out of date.
Diffstat (limited to 'src/nss-mymachines/nss-mymachines.c')
-rw-r--r-- | src/nss-mymachines/nss-mymachines.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/nss-mymachines/nss-mymachines.c b/src/nss-mymachines/nss-mymachines.c index 44715bb3e5..781fd48d72 100644 --- a/src/nss-mymachines/nss-mymachines.c +++ b/src/nss-mymachines/nss-mymachines.c @@ -22,14 +22,9 @@ #include "signal-util.h" #include "string-util.h" -static void setup_logging(void) { - /* We need a dummy function because log_parse_environment is a macro. */ - log_parse_environment(); -} - static void setup_logging_once(void) { static pthread_once_t once = PTHREAD_ONCE_INIT; - assert_se(pthread_once(&once, setup_logging) == 0); + assert_se(pthread_once(&once, log_parse_environment) == 0); } #define NSS_ENTRYPOINT_BEGIN \ |