From e883479f35644d17db7efed710657c8543cfcb68 Mon Sep 17 00:00:00 2001 From: Gary Lin Date: Fri, 7 Apr 2017 12:32:24 +0800 Subject: Cryptlib: amend the headers and fix signness - Declare some functions in the proper headers + We missed them for a long time... - Cast offsetof to UINTN + The original casting triggers the gcc warning since int can not present the offset for the 64bit machines. - Cast the "char" array to "CHAR8 *" to avoid the gcc warnings - Implement atoi correctly Signed-off-by: Gary Lin --- Cryptlib/Library/BaseLib.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Cryptlib/Library/BaseLib.h') diff --git a/Cryptlib/Library/BaseLib.h b/Cryptlib/Library/BaseLib.h index 4c99fa9b..c29919ea 100644 --- a/Cryptlib/Library/BaseLib.h +++ b/Cryptlib/Library/BaseLib.h @@ -1,2 +1,8 @@ #include #include + +UINT32 WriteUnaligned32 (UINT32 *Buffer, UINT32 Value); +UINTN AsciiStrSize (CHAR8 *string); +char *AsciiStrnCpy(char *Destination, char *Source, UINTN count); +char *AsciiStrCat(char *Destination, char *Source); +UINTN AsciiStrDecimalToUintn(const char *String); -- cgit v1.2.3