diff options
author | Ondrej Kozina <okozina@redhat.com> | 2023-11-14 14:45:09 +0100 |
---|---|---|
committer | Milan Broz <gmazyland@gmail.com> | 2023-11-15 19:22:27 +0000 |
commit | 7aeb1c3aeaeca548d4a6b84f50382c75424db3e1 (patch) | |
tree | 58450c569f853af326374d3c62f7b2fd32ed0fbc | |
parent | cf7874de4bfa0f180a9ef1d8c3f67f9ca7b00b4d (diff) | |
download | cryptsetup-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.c | 4 |
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"); |