aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Kozina <okozina@redhat.com>2023-11-14 14:45:09 +0100
committerMilan Broz <gmazyland@gmail.com>2023-11-15 19:22:27 +0000
commit7aeb1c3aeaeca548d4a6b84f50382c75424db3e1 (patch)
tree58450c569f853af326374d3c62f7b2fd32ed0fbc
parentcf7874de4bfa0f180a9ef1d8c3f67f9ca7b00b4d (diff)
downloadcryptsetup-7aeb1c3aeaeca548d4a6b84f50382c75424db3e1.tar.gz
Fix fake systemd tpm path symbol.
The prototype for the function in systemd has changed. Otrherwise the tests abort with SEGFAULT.
-rw-r--r--tests/fake_systemd_tpm_path.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/fake_systemd_tpm_path.c b/tests/fake_systemd_tpm_path.c
index 6d829899..3dff7183 100644
--- a/tests/fake_systemd_tpm_path.c
+++ b/tests/fake_systemd_tpm_path.c
@@ -2,9 +2,9 @@
#include <stdlib.h>
/* systemd tpm2-util.h */
-int tpm2_find_device_auto(int log_level, char **ret);
+int tpm2_find_device_auto(char **ret);
-extern int tpm2_find_device_auto(int log_level __attribute__((unused)), char **ret)
+extern int tpm2_find_device_auto(char **ret)
{
const char *path = getenv("TPM_PATH");