diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-11-22 11:32:36 +0100 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-11-22 11:54:30 +0100 |
commit | caf29d1e6498bca1f4e98864b0c7a96976a14f20 (patch) | |
tree | e4e35a38108c931bda54e23af990b286aa3d139b /lib | |
parent | ae182a25f5777f957a2c56539221abcb5648c5c6 (diff) | |
download | u-boot-caf29d1e6498bca1f4e98864b0c7a96976a14f20.zip u-boot-caf29d1e6498bca1f4e98864b0c7a96976a14f20.tar.gz u-boot-caf29d1e6498bca1f4e98864b0c7a96976a14f20.tar.bz2 |
efi_selftest: unsigned char parameter for efi_st_strcmp_16_8()
Use unsigned char for the parameter of efi_st_strcmp_16_8. This allows
comparing characters 0x80 - 0xff.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/efi_selftest/efi_selftest_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_selftest/efi_selftest_util.c b/lib/efi_selftest/efi_selftest_util.c index 7e03e0c..3681fa6 100644 --- a/lib/efi_selftest/efi_selftest_util.c +++ b/lib/efi_selftest/efi_selftest_util.c @@ -102,7 +102,7 @@ u16 *efi_st_translate_code(u16 code) return efi_st_unknown; } -int efi_st_strcmp_16_8(const u16 *buf1, const char *buf2) +int efi_st_strcmp_16_8(const u16 *buf1, const unsigned char *buf2) { for (; *buf1 || *buf2; ++buf1, ++buf2) { if (*buf1 != *buf2) |