summaryrefslogtreecommitdiffstats
path: root/src/basic/gcrypt-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/basic/gcrypt-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/basic/gcrypt-util.h')
-rw-r--r--src/basic/gcrypt-util.h60
1 files changed, 30 insertions, 30 deletions
diff --git a/src/basic/gcrypt-util.h b/src/basic/gcrypt-util.h
index acb50e84b7..b8b9b0b1cb 100644
--- a/src/basic/gcrypt-util.h
+++ b/src/basic/gcrypt-util.h
@@ -12,36 +12,36 @@
#include "dlfcn-util.h"
#include "macro.h"
-DLSYM_PROTOTYPE(gcry_md_close);
-DLSYM_PROTOTYPE(gcry_md_copy);
-DLSYM_PROTOTYPE(gcry_md_ctl);
-DLSYM_PROTOTYPE(gcry_md_get_algo_dlen);
-DLSYM_PROTOTYPE(gcry_md_open);
-DLSYM_PROTOTYPE(gcry_md_read);
-DLSYM_PROTOTYPE(gcry_md_reset);
-DLSYM_PROTOTYPE(gcry_md_setkey);
-DLSYM_PROTOTYPE(gcry_md_write);
-DLSYM_PROTOTYPE(gcry_mpi_add);
-DLSYM_PROTOTYPE(gcry_mpi_add_ui);
-DLSYM_PROTOTYPE(gcry_mpi_cmp);
-DLSYM_PROTOTYPE(gcry_mpi_cmp_ui);
-DLSYM_PROTOTYPE(gcry_mpi_get_nbits);
-DLSYM_PROTOTYPE(gcry_mpi_invm);
-DLSYM_PROTOTYPE(gcry_mpi_mod);
-DLSYM_PROTOTYPE(gcry_mpi_mul);
-DLSYM_PROTOTYPE(gcry_mpi_mulm);
-DLSYM_PROTOTYPE(gcry_mpi_new);
-DLSYM_PROTOTYPE(gcry_mpi_powm);
-DLSYM_PROTOTYPE(gcry_mpi_print);
-DLSYM_PROTOTYPE(gcry_mpi_release);
-DLSYM_PROTOTYPE(gcry_mpi_scan);
-DLSYM_PROTOTYPE(gcry_mpi_set_ui);
-DLSYM_PROTOTYPE(gcry_mpi_sub);
-DLSYM_PROTOTYPE(gcry_mpi_subm);
-DLSYM_PROTOTYPE(gcry_mpi_sub_ui);
-DLSYM_PROTOTYPE(gcry_prime_check);
-DLSYM_PROTOTYPE(gcry_randomize);
-DLSYM_PROTOTYPE(gcry_strerror);
+extern DLSYM_PROTOTYPE(gcry_md_close);
+extern DLSYM_PROTOTYPE(gcry_md_copy);
+extern DLSYM_PROTOTYPE(gcry_md_ctl);
+extern DLSYM_PROTOTYPE(gcry_md_get_algo_dlen);
+extern DLSYM_PROTOTYPE(gcry_md_open);
+extern DLSYM_PROTOTYPE(gcry_md_read);
+extern DLSYM_PROTOTYPE(gcry_md_reset);
+extern DLSYM_PROTOTYPE(gcry_md_setkey);
+extern DLSYM_PROTOTYPE(gcry_md_write);
+extern DLSYM_PROTOTYPE(gcry_mpi_add);
+extern DLSYM_PROTOTYPE(gcry_mpi_add_ui);
+extern DLSYM_PROTOTYPE(gcry_mpi_cmp);
+extern DLSYM_PROTOTYPE(gcry_mpi_cmp_ui);
+extern DLSYM_PROTOTYPE(gcry_mpi_get_nbits);
+extern DLSYM_PROTOTYPE(gcry_mpi_invm);
+extern DLSYM_PROTOTYPE(gcry_mpi_mod);
+extern DLSYM_PROTOTYPE(gcry_mpi_mul);
+extern DLSYM_PROTOTYPE(gcry_mpi_mulm);
+extern DLSYM_PROTOTYPE(gcry_mpi_new);
+extern DLSYM_PROTOTYPE(gcry_mpi_powm);
+extern DLSYM_PROTOTYPE(gcry_mpi_print);
+extern DLSYM_PROTOTYPE(gcry_mpi_release);
+extern DLSYM_PROTOTYPE(gcry_mpi_scan);
+extern DLSYM_PROTOTYPE(gcry_mpi_set_ui);
+extern DLSYM_PROTOTYPE(gcry_mpi_sub);
+extern DLSYM_PROTOTYPE(gcry_mpi_subm);
+extern DLSYM_PROTOTYPE(gcry_mpi_sub_ui);
+extern DLSYM_PROTOTYPE(gcry_prime_check);
+extern DLSYM_PROTOTYPE(gcry_randomize);
+extern DLSYM_PROTOTYPE(gcry_strerror);
int initialize_libgcrypt(bool secmem);