From: proski Date: Wed, 1 Jul 2009 23:58:30 +0000 (+0000) Subject: 2009-07-01 Pavel Roskin X-Git-Tag: 1.98~734 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d23af54ef462a98a74a284f398a42ba519d02cf7;p=thirdparty%2Fgrub.git 2009-07-01 Pavel Roskin * util/hostdisk.c (open_device): Remove `const' from `sysctl_size', as sysctlbyname() can change it (in this case it doesn't actually happen). --- diff --git a/ChangeLog b/ChangeLog index 8af6cd441..3ea8033a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2009-07-01 Pavel Roskin + * 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. diff --git a/util/hostdisk.c b/util/hostdisk.c index 40052653a..d84e7f3bf 100644 --- a/util/hostdisk.c +++ b/util/hostdisk.c @@ -344,7 +344,7 @@ open_device (const grub_disk_t disk, grub_disk_addr_t sector, int flags) #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)) {