[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[2389] 2009-07-01 Pavel Roskin <address@hidden>
From: |
Pavel Roskin |
Subject: |
[2389] 2009-07-01 Pavel Roskin <address@hidden> |
Date: |
Wed, 01 Jul 2009 23:58:31 +0000 |
Revision: 2389
http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2389
Author: proski
Date: 2009-07-01 23:58:30 +0000 (Wed, 01 Jul 2009)
Log Message:
-----------
2009-07-01 Pavel Roskin <address@hidden>
* util/hostdisk.c (open_device): Remove `const' from
`sysctl_size', as sysctlbyname() can change it (in this case it
doesn't actually happen).
Modified Paths:
--------------
trunk/grub2/ChangeLog
trunk/grub2/util/hostdisk.c
Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog 2009-07-01 23:38:40 UTC (rev 2388)
+++ trunk/grub2/ChangeLog 2009-07-01 23:58:30 UTC (rev 2389)
@@ -1,5 +1,9 @@
2009-07-01 Pavel Roskin <address@hidden>
+ * 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.
Modified: trunk/grub2/util/hostdisk.c
===================================================================
--- trunk/grub2/util/hostdisk.c 2009-07-01 23:38:40 UTC (rev 2388)
+++ trunk/grub2/util/hostdisk.c 2009-07-01 23:58:30 UTC (rev 2389)
@@ -344,7 +344,7 @@
#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))
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [2389] 2009-07-01 Pavel Roskin <address@hidden>,
Pavel Roskin <=