]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_selftest: unsigned char parameter for efi_st_strcmp_16_8()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 22 Nov 2022 10:32:36 +0000 (11:32 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 22 Nov 2022 10:54:30 +0000 (11:54 +0100)
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>
include/efi_selftest.h
lib/efi_selftest/efi_selftest_util.c

index e900cb85a96367862715e8ba35dc75c3d59ea49f..7c69c3f3761080a585dfa7be4011b530cf149601 100644 (file)
@@ -131,7 +131,7 @@ u16 *efi_st_translate_code(u16 code);
  * @buf2:      char string
  * Return:     0 if both buffers contain equivalent strings
  */
-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);
 
 /**
  * efi_st_get_config_table() - get configuration table
index 7e03e0c9392b49331d75e4902a06733e8aff9473..3681fa6431f7d869d70cb92335aba5019eeeb4bc 100644 (file)
@@ -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)