* grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
tpart non-const, so that we can assign to it. (Since this is a typedef, the constness refers to the pointer rather than what it points to.)
This commit is contained in:
parent
8d5e2af3fc
commit
d7dbe92395
2 changed files with 8 additions and 1 deletions
|
@ -727,7 +727,7 @@ grub_efidisk_get_device_name (grub_efi_handle_t *handle)
|
|||
{
|
||||
/* This is a hard disk partition. */
|
||||
grub_disk_t parent = 0;
|
||||
const grub_partition_t tpart = NULL;
|
||||
grub_partition_t tpart = NULL;
|
||||
char *device_name;
|
||||
grub_efi_device_path_t *dup_dp, *dup_ldp;
|
||||
grub_efi_hard_drive_device_path_t hd;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue