diff options
| author | Gary Lin <glin@suse.com> | 2017-04-07 12:32:24 +0800 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2017-09-08 14:47:09 -0400 |
| commit | 80a5aa9d1b47d3bbe58bc303513468ff00f60017 (patch) | |
| tree | fb235b15f2be11585b5c178f08e53643b45e63d0 /Cryptlib/Library/BaseLib.h | |
| parent | 2fdba73012dea93ad61bba855cb882e4d1d67d48 (diff) | |
| download | efi-boot-shim-80a5aa9d1b47d3bbe58bc303513468ff00f60017.tar.gz efi-boot-shim-80a5aa9d1b47d3bbe58bc303513468ff00f60017.zip | |
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 <glin@suse.com>
Diffstat (limited to 'Cryptlib/Library/BaseLib.h')
| -rw-r--r-- | Cryptlib/Library/BaseLib.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 <efi.h> #include <efilib.h> + +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); |
