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
2 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
||||||
2009-07-01 Pavel Roskin <proski@gnu.org>
|
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
|
* util/hostdisk.c (device_is_wholedisk): Compile only on systems
|
||||||
where it's needed.
|
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)
|
if (strncmp ("/dev/", os_dev, 5) == 0)
|
||||||
{
|
{
|
||||||
char *p, *q;
|
const char *p;
|
||||||
|
char *q;
|
||||||
long int n;
|
long int n;
|
||||||
|
|
||||||
for (p = os_dev + 5; *p; ++p)
|
for (p = os_dev + 5; *p; ++p)
|
||||||
|
|
Loading…
Add table
Reference in a new issue