mirror of
https://github.com/stefanberger/libtpms
synced 2025-12-29 08:42:22 +00:00
man3: Fix errors in code example in TPMLIB_RegisterCallbacks
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
parent
71b33cb9e0
commit
04f85e2fc1
@ -217,14 +217,16 @@ B<libtpms/tpm_error.h>
|
||||
return TPM_SUCCESS;
|
||||
}
|
||||
|
||||
static TPM_RESULT tpm_io_getlocality(TPM_MODIFIER_INDICATOR *locModif)
|
||||
static TPM_RESULT mytpm_io_getlocality(TPM_MODIFIER_INDICATOR *locModif,
|
||||
uint32_t tpm_number)
|
||||
{
|
||||
*locModif = locality;
|
||||
|
||||
return TPM_SUCCESS:
|
||||
}
|
||||
|
||||
static TPM_RESULT mytpm_io_getphysicalpresence(TPM_BOOL *phyPres)
|
||||
static TPM_RESULT mytpm_io_getphysicalpresence(TPM_BOOL *physicalPresence,
|
||||
uint32_t tpm_number)
|
||||
{
|
||||
*physicalPresence = FALSE;
|
||||
|
||||
@ -253,7 +255,7 @@ B<libtpms/tpm_error.h>
|
||||
|
||||
[...]
|
||||
|
||||
if (TPMLIB_RegisterCallbacks(cbs) != TPM_SUCCESS) {
|
||||
if (TPMLIB_RegisterCallbacks(&cbs) != TPM_SUCCESS) {
|
||||
fprintf(stderr, "Could not register the callbacks.\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user