From 9238b8271dba66bff7d748e765d7930407e62c0e Mon Sep 17 00:00:00 2001 From: dfr Date: Sun, 27 Dec 1998 18:03:29 +0000 Subject: Fix some 64bit truncation problems which crept into SYSCTL_LONG() with the last cleanup. Since the oid_arg2 field of struct sysctl_oid is not wide enough to hold a long, the SYSCTL_LONG() macro has been modified to only support exporting long variables by pointer instead of by value. Reviewed by: bde --- sys/kern/subr_devstat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern/subr_devstat.c') diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c index 8976c3b..5fcf88e 100644 --- a/sys/kern/subr_devstat.c +++ b/sys/kern/subr_devstat.c @@ -25,7 +25,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: subr_devstat.c,v 1.6 1998/11/15 23:57:22 ken Exp $ + * $Id: subr_devstat.c,v 1.7 1998/12/04 22:54:51 archie Exp $ */ #include @@ -243,6 +243,6 @@ SYSCTL_PROC(_kern_devstat, OID_AUTO, all, CTLFLAG_RD|CTLTYPE_OPAQUE, SYSCTL_INT(_kern_devstat, OID_AUTO, numdevs, CTLFLAG_RD, &devstat_num_devs, 0, "Number of devices in the devstat list"); SYSCTL_LONG(_kern_devstat, OID_AUTO, generation, CTLFLAG_RD, - &devstat_generation, 0, "Devstat list generation"); + &devstat_generation, "Devstat list generation"); SYSCTL_INT(_kern_devstat, OID_AUTO, version, CTLFLAG_RD, &devstat_version, 0, "Devstat list version number"); -- cgit v1.1