From 7aeb1c3aeaeca548d4a6b84f50382c75424db3e1 Mon Sep 17 00:00:00 2001 From: Ondrej Kozina Date: Tue, 14 Nov 2023 14:45:09 +0100 Subject: [PATCH] Fix fake systemd tpm path symbol. The prototype for the function in systemd has changed. Otrherwise the tests abort with SEGFAULT. --- tests/fake_systemd_tpm_path.c | 4 ++-- 1 file 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 /* 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");