]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
authorColin Watson <cjwatson@ubuntu.com>
Tue, 21 Sep 2010 12:41:23 +0000 (13:41 +0100)
committerColin Watson <cjwatson@ubuntu.com>
Tue, 21 Sep 2010 12:41:23 +0000 (13:41 +0100)
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.)

ChangeLog
grub-core/disk/efi/efidisk.c

index 1faaea88b66e27fb0f0486d42a3c0be9229aa8e1..b4438a7be1848dfb8ea97b8e25c1aa41946bf4d5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-09-21  Colin Watson  <cjwatson@ubuntu.com>
+
+       * 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.)
+
 2010-09-21  Colin Watson  <cjwatson@ubuntu.com>
 
        * conf/Makefile.common (CPPFLAGS_GNULIB): Add
index 293467a6890e16e8ec56ef90ce3b37b37d5e852d..08094fa5c9ec06f59e92cbffd2691ee6a3cb62e5 100644 (file)
@@ -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;