46968b6
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
46968b6
From: Peter Jones <pjones@redhat.com>
46968b6
Date: Mon, 20 Jul 2020 12:24:02 -0400
46968b6
Subject: [PATCH] Fix const char ** pointers in grub-core/net/bootp.c
46968b6
46968b6
This will need to get folded back in the right place on the next rebase,
46968b6
but it's before "Make grub_strtol() "end" pointers have safer const
46968b6
qualifiers" currently, so for now I'm leaving it here instead of merging
46968b6
it back with the original patch.
46968b6
46968b6
Signed-off-by: Peter Jones <pjones@redhat.com>
46968b6
---
46968b6
 grub-core/net/bootp.c | 4 ++--
46968b6
 1 file changed, 2 insertions(+), 2 deletions(-)
46968b6
46968b6
diff --git a/grub-core/net/bootp.c b/grub-core/net/bootp.c
13985b0
index 8fb8918ae7e..7baf3540c81 100644
46968b6
--- a/grub-core/net/bootp.c
46968b6
+++ b/grub-core/net/bootp.c
46968b6
@@ -329,7 +329,7 @@ grub_net_configure_by_dhcp_ack (const char *name,
46968b6
   struct grub_net_network_level_interface *inter;
46968b6
   int mask = -1;
46968b6
   char server_ip[sizeof ("xxx.xxx.xxx.xxx")];
46968b6
-  const grub_uint8_t *opt;
46968b6
+  const char *opt;
46968b6
   grub_uint8_t opt_len, overload = 0;
46968b6
   const char *boot_file = 0, *server_name = 0;
46968b6
   grub_size_t boot_file_len, server_name_len;
46968b6
@@ -505,7 +505,7 @@ grub_net_configure_by_dhcp_ack (const char *name,
46968b6
   if (opt && opt_len)
46968b6
     {
46968b6
       grub_env_set_net_property (name, "vendor_class_identifier", (const char *) opt, opt_len);
46968b6
-      if (opt && grub_strcmp (opt, "HTTPClient") == 0)
46968b6
+      if (opt && grub_strcmp ((char *)opt, "HTTPClient") == 0)
46968b6
         {
46968b6
           char *proto, *ip, *pa;
46968b6