mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
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>
This commit is contained in:
parent
ae182a25f5
commit
caf29d1e64
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue