]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-07-01 Pavel Roskin <proski@gnu.org>
authorproski <proski@localhost>
Wed, 1 Jul 2009 23:07:17 +0000 (23:07 +0000)
committerproski <proski@localhost>
Wed, 1 Jul 2009 23:07:17 +0000 (23:07 +0000)
* util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
constant to avoid a warning on FreeBSD.

ChangeLog
util/hostdisk.c

index f64edf44edabc4a284f9d21f4087a8af99e4f491..d151d9b4221b20e76976de6235bf5d0b0ce7925f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2009-07-01  Pavel Roskin  <proski@gnu.org>
 
+       * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
+       constant to avoid a warning on FreeBSD.
+
        * util/hostdisk.c (device_is_wholedisk): Compile only on systems
        where it's needed.
 
index 46afc38824903b453035066e44a858ec175f37ea..40052653ae16f7951097eb6980ec0cf3dd50db19 100644 (file)
@@ -1047,7 +1047,8 @@ grub_util_biosdisk_get_grub_dev (const char *os_dev)
 
     if (strncmp ("/dev/", os_dev, 5) == 0)
       {
-        char *p, *q;
+        const char *p;
+        char *q;
         long int n;
 
         for (p = os_dev + 5; *p; ++p)