os_dev is a const char *, and with recent glibc the qualifier gets
propagated through strrchr below, so p needs to be qualified const as
well.

Signed-off-by: Samuel Thibault <[email protected]>

diff --git a/util/getroot.c b/util/getroot.c
index 75a7d5f21..05a2414fe 100644
--- a/util/getroot.c
+++ b/util/getroot.c
@@ -351,7 +351,7 @@ grub_util_biosdisk_get_grub_dev (const char *os_dev)
      */
     if (ctx.start == (grub_disk_addr_t) -1)
       {
-       char *p;
+       const char *p;
        char *dri;
 
        dri = make_device_name (drive);

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to