|
|
5593c8 |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
5593c8 |
From: Peter Jones <pjones@redhat.com>
|
|
|
5593c8 |
Date: Mon, 20 Jul 2020 12:24:02 -0400
|
|
|
5593c8 |
Subject: [PATCH] Fix const char ** pointers in grub-core/net/efi/net.c
|
|
|
5593c8 |
|
|
|
5593c8 |
This will need to get folded back in the right place on the next rebase,
|
|
|
5593c8 |
but it's before "Make grub_strtol() "end" pointers have safer const
|
|
|
5593c8 |
qualifiers" currently, so for now I'm leaving it here instead of merging
|
|
|
5593c8 |
it back with the original patch.
|
|
|
5593c8 |
|
|
|
5593c8 |
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
|
5593c8 |
---
|
|
|
5593c8 |
grub-core/net/efi/net.c | 4 ++--
|
|
|
5593c8 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
5593c8 |
|
|
|
5593c8 |
diff --git a/grub-core/net/efi/net.c b/grub-core/net/efi/net.c
|
|
|
d3c3ab |
index a3f0535d43c..78e5442fc52 100644
|
|
|
5593c8 |
--- a/grub-core/net/efi/net.c
|
|
|
5593c8 |
+++ b/grub-core/net/efi/net.c
|
|
|
5593c8 |
@@ -729,7 +729,7 @@ grub_efi_net_parse_address (const char *address,
|
|
|
5593c8 |
{
|
|
|
5593c8 |
grub_uint32_t subnet_mask_size;
|
|
|
5593c8 |
|
|
|
5593c8 |
- subnet_mask_size = grub_strtoul (rest + 1, (char **) &rest, 0);
|
|
|
5593c8 |
+ subnet_mask_size = grub_strtoul (rest + 1, &rest, 0);
|
|
|
5593c8 |
|
|
|
5593c8 |
if (!grub_errno && subnet_mask_size <= 32 && *rest == 0)
|
|
|
5593c8 |
{
|
|
|
5593c8 |
@@ -758,7 +758,7 @@ grub_efi_net_parse_address (const char *address,
|
|
|
5593c8 |
{
|
|
|
5593c8 |
grub_efi_uint8_t prefix_length;
|
|
|
5593c8 |
|
|
|
5593c8 |
- prefix_length = grub_strtoul (rest + 1, (char **) &rest, 0);
|
|
|
5593c8 |
+ prefix_length = grub_strtoul (rest + 1, &rest, 0);
|
|
|
5593c8 |
if (!grub_errno && prefix_length <= 128 && *rest == 0)
|
|
|
5593c8 |
{
|
|
|
5593c8 |
ip6->prefix_length = prefix_length;
|