From: proski Date: Wed, 1 Jul 2009 23:07:17 +0000 (+0000) Subject: 2009-07-01 Pavel Roskin X-Git-Tag: 1.98~736 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c6cd3ef02218938b4df7a0cd72b4b0415e211583;p=thirdparty%2Fgrub.git 2009-07-01 Pavel Roskin * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p' constant to avoid a warning on FreeBSD. --- diff --git a/ChangeLog b/ChangeLog index f64edf44e..d151d9b42 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2009-07-01 Pavel Roskin + * 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. diff --git a/util/hostdisk.c b/util/hostdisk.c index 46afc3882..40052653a 100644 --- a/util/hostdisk.c +++ b/util/hostdisk.c @@ -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)