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.
This commit is contained in:
proski 2009-07-01 23:07:17 +00:00
parent 0df634200a
commit c6cd3ef022
2 changed files with 5 additions and 1 deletions

View file

@ -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.

View 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)