nss: drop dummy setup_logging() helpers

log_parse_environment() stopped being a macro in 9fdee66f2d.
As reported by @bauen1 in https://github.com/systemd/systemd/issues/22020,
the comment was out of date.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2022-01-11 13:23:27 +01:00
parent ed3abbfbde
commit 56a5f4969b
2 changed files with 2 additions and 12 deletions

View File

@@ -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 \

View File

@@ -116,14 +116,9 @@ static GetentData getsgent_data = {
.mutex = PTHREAD_MUTEX_INITIALIZER,
};
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 \