diff options
| author | Peter Jones <pjones@redhat.com> | 2021-02-20 12:32:48 -0500 |
|---|---|---|
| committer | Jan Setje-Eilers <73182357+jsetje@users.noreply.github.com> | 2021-03-09 13:52:53 -0800 |
| commit | 758b795a86589994065099d0af02eb30626a3c21 (patch) | |
| tree | 945365106dec43ce932bf46230c4b7c98ed60e9b /Cryptlib/SysCall/BaseStrings.c | |
| parent | c61bfdc8a34fea1c6ea97ac0fb9c99f34f980381 (diff) | |
| download | efi-boot-shim-758b795a86589994065099d0af02eb30626a3c21.tar.gz efi-boot-shim-758b795a86589994065099d0af02eb30626a3c21.zip | |
Cryptlib: make some Str*() args const.
Diffstat (limited to 'Cryptlib/SysCall/BaseStrings.c')
| -rw-r--r-- | Cryptlib/SysCall/BaseStrings.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Cryptlib/SysCall/BaseStrings.c b/Cryptlib/SysCall/BaseStrings.c index 252e6db3..c4b3e18e 100644 --- a/Cryptlib/SysCall/BaseStrings.c +++ b/Cryptlib/SysCall/BaseStrings.c @@ -1,7 +1,7 @@ #include <OpenSslSupport.h> -char * -AsciiStrCat(char *Destination, char *Source) +CHAR8 * +AsciiStrCat(CHAR8 *Destination, const CHAR8 *Source) { UINTN dest_len = strlena((CHAR8 *)Destination); UINTN i; @@ -14,7 +14,7 @@ AsciiStrCat(char *Destination, char *Source) } CHAR8 * -AsciiStrCpy(CHAR8 *Destination, CHAR8 *Source) +AsciiStrCpy(CHAR8 *Destination, const CHAR8 *Source) { UINTN i; @@ -25,8 +25,8 @@ AsciiStrCpy(CHAR8 *Destination, CHAR8 *Source) return Destination; } -char * -AsciiStrnCpy(char *Destination, char *Source, UINTN count) +CHAR8 * +AsciiStrnCpy(CHAR8 *Destination, const CHAR8 *Source, UINTN count) { UINTN i; @@ -59,7 +59,7 @@ WriteUnaligned32(UINT32 *Buffer, UINT32 Value) } UINTN -AsciiStrSize(CHAR8 *string) +AsciiStrSize(const CHAR8 *string) { return strlena(string) + 1; } @@ -97,7 +97,7 @@ strcasecmp (const char *str1, const char *str2) /* Based on AsciiStrDecimalToUintnS() in edk2 * MdePkg/Library/BaseLib/SafeString.c */ UINTN -AsciiStrDecimalToUintn(const char *String) +AsciiStrDecimalToUintn(const CHAR8 *String) { UINTN Result; |
