* util/hostdisk.c (open_device): Remove `const' from
`sysctl_size', as sysctlbyname() can change it (in this case it
doesn't actually happen).
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
using signed long int constants.
#else /* ! __linux__ */
#if defined (__FreeBSD__) || defined(__FreeBSD_kernel__)
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))
{