mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-06 00:10:04 +01:00
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:
committed by
Milan Broz
parent
cf7874de4b
commit
7aeb1c3aea
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user