2009-07-01 Pavel Roskin <proski@gnu.org>
* util/hostdisk.c (open_device): Remove `const' from `sysctl_size', as sysctlbyname() can change it (in this case it doesn't actually happen).
This commit is contained in:
parent
c94b18a9e5
commit
d23af54ef4
2 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,9 @@
|
||||||
2009-07-01 Pavel Roskin <proski@gnu.org>
|
2009-07-01 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* util/hostdisk.c (open_device): Remove `const' from
|
||||||
|
`sysctl_size', as sysctlbyname() can change it (in this case it
|
||||||
|
doesn't actually happen).
|
||||||
|
|
||||||
* include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
|
* include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
|
||||||
using signed long int constants.
|
using signed long int constants.
|
||||||
|
|
||||||
|
|
|
@ -344,7 +344,7 @@ open_device (const grub_disk_t disk, grub_disk_addr_t sector, int flags)
|
||||||
#else /* ! __linux__ */
|
#else /* ! __linux__ */
|
||||||
#if defined (__FreeBSD__) || defined(__FreeBSD_kernel__)
|
#if defined (__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||||
int sysctl_flags, sysctl_oldflags;
|
int sysctl_flags, sysctl_oldflags;
|
||||||
const size_t sysctl_size = sizeof (sysctl_flags);
|
size_t sysctl_size = sizeof (sysctl_flags);
|
||||||
|
|
||||||
if (sysctlbyname ("kern.geom.debugflags", &sysctl_oldflags, &sysctl_size, NULL, 0))
|
if (sysctlbyname ("kern.geom.debugflags", &sysctl_oldflags, &sysctl_size, NULL, 0))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue