summaryrefslogtreecommitdiffstats
path: root/src/shared/idn-util.h
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/idn-util.h
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/idn-util.h')
-rw-r--r--src/shared/idn-util.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/shared/idn-util.h b/src/shared/idn-util.h
index 3ae2f13231..822800cc22 100644
--- a/src/shared/idn-util.h
+++ b/src/shared/idn-util.h
@@ -21,14 +21,14 @@ static inline int dlopen_idn(void) {
#endif
#if HAVE_LIBIDN2
-DLSYM_PROTOTYPE(idn2_lookup_u8);
+extern DLSYM_PROTOTYPE(idn2_lookup_u8);
extern const char *(*sym_idn2_strerror)(int rc) _const_;
-DLSYM_PROTOTYPE(idn2_to_unicode_8z8z);
+extern DLSYM_PROTOTYPE(idn2_to_unicode_8z8z);
#endif
#if HAVE_LIBIDN
-DLSYM_PROTOTYPE(idna_to_ascii_4i);
-DLSYM_PROTOTYPE(idna_to_unicode_44i);
-DLSYM_PROTOTYPE(stringprep_ucs4_to_utf8);
-DLSYM_PROTOTYPE(stringprep_utf8_to_ucs4);
+extern DLSYM_PROTOTYPE(idna_to_ascii_4i);
+extern DLSYM_PROTOTYPE(idna_to_unicode_44i);
+extern DLSYM_PROTOTYPE(stringprep_ucs4_to_utf8);
+extern DLSYM_PROTOTYPE(stringprep_utf8_to_ucs4);
#endif