From e9fc7b89d865536c46deb63f9c7d0121a3ded49c Mon Sep 17 00:00:00 2001 From: esmusick <112638711+esmusick@users.noreply.github.com> Date: Tue, 17 Oct 2023 11:22:59 -0400 Subject: [PATCH] Fix conflicting types for `ReadVarBytes`. (#102) Updates Simulator_fp.h to match TcpServer.c declaration. --- TPMCmd/Simulator/include/prototypes/Simulator_fp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TPMCmd/Simulator/include/prototypes/Simulator_fp.h b/TPMCmd/Simulator/include/prototypes/Simulator_fp.h index 12ad7ed0..ff90a374 100644 --- a/TPMCmd/Simulator/include/prototypes/Simulator_fp.h +++ b/TPMCmd/Simulator/include/prototypes/Simulator_fp.h @@ -93,7 +93,7 @@ bool ReadUINT32(SOCKET s, uint32_t* val); //*** ReadVarBytes() // Get a uint32-length-prepended binary array. Note that the 4-byte length is // in network byte order (big-endian). -bool ReadVarBytes(SOCKET s, char* buffer, uint32_t* BytesReceived, int MaxLen); +bool ReadVarBytes(SOCKET s, char* buffer, uint32_t* BytesReceived, uint32_t MaxLen); //*** WriteVarBytes() // Send a UINT32-length-prepended binary array. Note that the 4-byte length is