mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 16:49:23 +00:00
util/probe: Save strrchr() ret val to const data ptr
With glibc-2.43 implementing the C23 standard, strrchr() now returns "const char *" when its first argument is "const char *". The fix is update all pointers receiving strrchr()'s return value so that they are now "const char *" instead of "char *". Signed-off-by: Nicholas Vinson <nvinson234@gmail.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
b71ae6db28
commit
9f4a586f12
1 file changed
+3
-3
+3
-3
@@ -70,7 +70,7 @@ char *
|
||||
grub_util_guess_bios_drive (const char *orig_path)
|
||||
{
|
||||
char *canon;
|
||||
char *ptr;
|
||||
const char *ptr;
|
||||
canon = grub_canonicalize_file_name (orig_path);
|
||||
if (!canon)
|
||||
return NULL;
|
||||
@@ -99,7 +99,7 @@ char *
|
||||
grub_util_guess_efi_drive (const char *orig_path)
|
||||
{
|
||||
char *canon;
|
||||
char *ptr;
|
||||
const char *ptr;
|
||||
canon = grub_canonicalize_file_name (orig_path);
|
||||
if (!canon)
|
||||
return NULL;
|
||||
@@ -128,7 +128,7 @@ char *
|
||||
grub_util_guess_baremetal_drive (const char *orig_path)
|
||||
{
|
||||
char *canon;
|
||||
char *ptr;
|
||||
const char *ptr;
|
||||
canon = grub_canonicalize_file_name (orig_path);
|
||||
if (!canon)
|
||||
return NULL;
|
||||
|
||||
Reference in new issue
Block a user