|
|
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/net.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/net.c | 4 ++--
|
|
|
8e15ce |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
8e15ce |
|
|
|
8e15ce |
diff --git a/grub-core/net/efi/net.c b/grub-core/net/efi/net.c
|
|
|
b35c50 |
index a3f0535d43..78e5442fc5 100644
|
|
|
8e15ce |
--- a/grub-core/net/efi/net.c
|
|
|
8e15ce |
+++ b/grub-core/net/efi/net.c
|
|
|
8e15ce |
@@ -729,7 +729,7 @@ grub_efi_net_parse_address (const char *address,
|
|
|
8e15ce |
{
|
|
|
8e15ce |
grub_uint32_t subnet_mask_size;
|
|
|
8e15ce |
|
|
|
8e15ce |
- subnet_mask_size = grub_strtoul (rest + 1, (char **) &rest, 0);
|
|
|
8e15ce |
+ subnet_mask_size = grub_strtoul (rest + 1, &rest, 0);
|
|
|
8e15ce |
|
|
|
8e15ce |
if (!grub_errno && subnet_mask_size <= 32 && *rest == 0)
|
|
|
8e15ce |
{
|
|
|
8e15ce |
@@ -758,7 +758,7 @@ grub_efi_net_parse_address (const char *address,
|
|
|
8e15ce |
{
|
|
|
8e15ce |
grub_efi_uint8_t prefix_length;
|
|
|
8e15ce |
|
|
|
8e15ce |
- prefix_length = grub_strtoul (rest + 1, (char **) &rest, 0);
|
|
|
8e15ce |
+ prefix_length = grub_strtoul (rest + 1, &rest, 0);
|
|
|
8e15ce |
if (!grub_errno && prefix_length <= 128 && *rest == 0)
|
|
|
8e15ce |
{
|
|
|
8e15ce |
ip6->prefix_length = prefix_length;
|