summaryrefslogtreecommitdiffstats
path: root/src/shared/password-quality-util-pwquality.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-05-21 14:10:26 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-06-12 15:21:15 +0200
commit5c672e90a659033815b104b2da128037b26a31ef (patch)
treeb3fdf5013bd5753077deada35eb76f762077081c /src/shared/password-quality-util-pwquality.c
parentrepart: Use CRYPT_ACTIVATE_PRIVATE (diff)
downloadsystemd-5c672e90a659033815b104b2da128037b26a31ef.tar.xz
systemd-5c672e90a659033815b104b2da128037b26a31ef.zip
basic/dlfcn-util: deobfuscate macro definitions
When looking at how dlopen for various libs is implemented, I found that the macros hide too much. I find it much easier to see what is going on if 'extern' and '= NULL' are written explicitly. After all, we don't hide those for other definitions, e.g. our style guide says that static variables should be initialized with '= NULL'. With that change, it's much more obvious what is a variable declaration and what is a variable initialization.
Diffstat (limited to 'src/shared/password-quality-util-pwquality.c')
-rw-r--r--src/shared/password-quality-util-pwquality.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/shared/password-quality-util-pwquality.c b/src/shared/password-quality-util-pwquality.c
index 7456469c86..30d15fd45e 100644
--- a/src/shared/password-quality-util-pwquality.c
+++ b/src/shared/password-quality-util-pwquality.c
@@ -14,14 +14,14 @@
static void *pwquality_dl = NULL;
-DLSYM_FUNCTION(pwquality_check);
-DLSYM_FUNCTION(pwquality_default_settings);
-DLSYM_FUNCTION(pwquality_free_settings);
-DLSYM_FUNCTION(pwquality_generate);
-DLSYM_FUNCTION(pwquality_get_str_value);
-DLSYM_FUNCTION(pwquality_read_config);
-DLSYM_FUNCTION(pwquality_set_int_value);
-DLSYM_FUNCTION(pwquality_strerror);
+DLSYM_PROTOTYPE(pwquality_check) = NULL;
+DLSYM_PROTOTYPE(pwquality_default_settings) = NULL;
+DLSYM_PROTOTYPE(pwquality_free_settings) = NULL;
+DLSYM_PROTOTYPE(pwquality_generate) = NULL;
+DLSYM_PROTOTYPE(pwquality_get_str_value) = NULL;
+DLSYM_PROTOTYPE(pwquality_read_config) = NULL;
+DLSYM_PROTOTYPE(pwquality_set_int_value) = NULL;
+DLSYM_PROTOTYPE(pwquality_strerror) = NULL;
int dlopen_pwquality(void) {
ELF_NOTE_DLOPEN("pwquality",