Fix fake systemd tpm path symbol.

The prototype for the function in systemd has changed.
Otrherwise the tests abort with SEGFAULT.
This commit is contained in:
Ondrej Kozina
2023-11-14 14:45:09 +01:00
committed by Milan Broz
parent cf7874de4b
commit 7aeb1c3aea

View File

@@ -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");