From 2b5d655820479f75b5523a90120eabb68d100f83 Mon Sep 17 00:00:00 2001 From: AA-HAMZA Date: Sun, 30 Jan 2022 01:11:04 +0200 Subject: [PATCH] Fixed compiling issues with grub v2.06 --- setup_var.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/setup_var.c b/setup_var.c index b3a1861..0143d4f 100644 --- a/setup_var.c +++ b/setup_var.c @@ -98,7 +98,7 @@ grub_cmd_setup_var (grub_command_t cmd, grub_efi_uintn_t setup_var_size = INSYDE_SETUP_VAR_SIZE; grub_uint8_t set_value = 0x0; grub_efi_uint32_t setup_var_attr = 0x7; - char* endptr; + const char* endptr; grub_uint16_t var_size = 0; grub_efi_char16_t* custom_varname = NULL; @@ -266,7 +266,7 @@ grub_cmd_setup_var (grub_command_t cmd, } if(status) { - return grub_error(GRUB_ERR_INVALID_COMMAND, "can't get variable using efi (error: 0x%016x)", status); + return grub_error(GRUB_ERR_INVALID_COMMAND, "can't get variable using efi (error: 0x%016lx)", status); } if (isModeCV) { @@ -325,7 +325,7 @@ grub_cmd_setup_var (grub_command_t cmd, tmp_data); if(status) { - return grub_error(GRUB_ERR_INVALID_COMMAND, "can't set variable using efi (error: 0x%016x)", status); + return grub_error(GRUB_ERR_INVALID_COMMAND, "can't set variable using efi (error: 0x%016lx)", status); } } else if (isModeVS) @@ -348,7 +348,7 @@ grub_cmd_setup_var (grub_command_t cmd, tmp_data); if(status) { - return grub_error(GRUB_ERR_INVALID_COMMAND, "can't set variable using efi (error: 0x%016x)", status); + return grub_error(GRUB_ERR_INVALID_COMMAND, "can't set variable using efi (error: 0x%016lx)", status); } } } @@ -372,7 +372,7 @@ grub_cmd_setup_var (grub_command_t cmd, tmp_data); if(status) { - return grub_error(GRUB_ERR_INVALID_COMMAND, "can't set variable using efi (error: 0x%016x)", status); + return grub_error(GRUB_ERR_INVALID_COMMAND, "can't set variable using efi (error: 0x%016lx)", status); } } }