diff options
author | Joel Kitching <kitching@google.com> | 2019-08-01 13:36:44 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-08-06 06:07:01 +0000 |
commit | 9c906110972f538ee5753845916ebd1f826f54b6 (patch) | |
tree | 733c4d13b29a827c45159969baf4daec5147a0e5 /tests/tlcl_tests.c | |
parent | 1db2f3801a8843a1d6380a0969d6836b41ca474e (diff) | |
download | vboot-9c906110972f538ee5753845916ebd1f826f54b6.tar.gz |
vboot/tpm: fix return type inconsistencies
TPM errors and vboot errors were getting mixed up.
Note that this patch changes a function signature in the
vboot1 API. Any callers of the function should be updated
accordingly.
BUG=b:124141368, chromium:988410
TEST=make clean && make runtests
BRANCH=none
Change-Id: Idf332ca9ac61b5771fccf9e2ce75e8689c0aace9
Signed-off-by: Joel Kitching <kitching@google.com>
Cq-Depend: chromium:1730374
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1729712
Reviewed-by: Joel Kitching <kitching@chromium.org>
Commit-Queue: Joel Kitching <kitching@chromium.org>
Tested-by: Joel Kitching <kitching@chromium.org>
Diffstat (limited to 'tests/tlcl_tests.c')
-rw-r--r-- | tests/tlcl_tests.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tlcl_tests.c b/tests/tlcl_tests.c index f9f990d9..fc6dee54 100644 --- a/tests/tlcl_tests.c +++ b/tests/tlcl_tests.c @@ -76,8 +76,8 @@ VbError_t VbExTpmClose(void) return mock_retval; } -VbError_t VbExTpmSendReceive(const uint8_t *request, uint32_t request_length, - uint8_t *response, uint32_t *response_length) +uint32_t VbExTpmSendReceive(const uint8_t *request, uint32_t request_length, + uint8_t *response, uint32_t *response_length) { struct srcall *c = calls + ncalls++; |