mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-06 13:18:58 +00:00
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:
parent
0df634200a
commit
c6cd3ef022
@ -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.
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user