From c6cd3ef02218938b4df7a0cd72b4b0415e211583 Mon Sep 17 00:00:00 2001 From: proski Date: Wed, 1 Jul 2009 23:07:17 +0000 Subject: [PATCH] 2009-07-01 Pavel Roskin * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p' constant to avoid a warning on FreeBSD. --- ChangeLog | 3 +++ util/hostdisk.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) 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)