Blame SOURCES/0163-Fix-const-char-pointers-in-grub-core-net-efi-ip6_con.patch
|
|
8e15ce |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
8e15ce |
From: Peter Jones <pjones@redhat.com>
|
|
|
8e15ce |
Date: Mon, 20 Jul 2020 12:24:02 -0400
|
|
|
8e15ce |
Subject: [PATCH] Fix const char ** pointers in grub-core/net/efi/ip6_config.c
|
|
|
8e15ce |
|
|
|
8e15ce |
This will need to get folded back in the right place on the next rebase,
|
|
|
8e15ce |
but it's before "Make grub_strtol() "end" pointers have safer const
|
|
|
8e15ce |
qualifiers" currently, so for now I'm leaving it here instead of merging
|
|
|
8e15ce |
it back with the original patch.
|
|
|
8e15ce |
|
|
|
8e15ce |
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
|
8e15ce |
---
|
|
|
8e15ce |
grub-core/net/efi/ip6_config.c | 2 +-
|
|
|
8e15ce |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
8e15ce |
|
|
|
8e15ce |
diff --git a/grub-core/net/efi/ip6_config.c b/grub-core/net/efi/ip6_config.c
|
|
|
8e15ce |
index a46f6f9b685..1c5415d7185 100644
|
|
|
8e15ce |
--- a/grub-core/net/efi/ip6_config.c
|
|
|
8e15ce |
+++ b/grub-core/net/efi/ip6_config.c
|
|
|
8e15ce |
@@ -85,7 +85,7 @@ grub_efi_string_to_ip6_address (const char *val, grub_efi_ipv6_address_t *addres
|
|
|
8e15ce |
ptr++;
|
|
|
8e15ce |
continue;
|
|
|
8e15ce |
}
|
|
|
8e15ce |
- t = grub_strtoul (ptr, (char **) &ptr, 16);
|
|
|
8e15ce |
+ t = grub_strtoul (ptr, &ptr, 16);
|
|
|
8e15ce |
if (grub_errno)
|
|
|
8e15ce |
{
|
|
|
8e15ce |
grub_errno = GRUB_ERR_NONE;
|