From be229fd880b13b01581c27605d0fea0430f3f9e9 Mon Sep 17 00:00:00 2001 From: miod Date: Fri, 29 Mar 2024 06:50:06 +0000 Subject: [PATCH] Remove one global variable duplicating uvmexp.pagesize. ok guenther@ deraadt@ --- sys/kern/kern_sysctl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c index 91bd12930e3..9ff340ca2ea 100644 --- a/sys/kern/kern_sysctl.c +++ b/sys/kern/kern_sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sysctl.c,v 1.425 2024/02/10 15:28:16 deraadt Exp $ */ +/* $OpenBSD: kern_sysctl.c,v 1.426 2024/03/29 06:50:06 miod Exp $ */ /* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */ /*- @@ -666,13 +666,12 @@ int hw_power = 1; /* morally const values reported by sysctl_bounded_arr */ static int byte_order = BYTE_ORDER; -static int page_size = PAGE_SIZE; const struct sysctl_bounded_args hw_vars[] = { {HW_NCPU, &ncpus, SYSCTL_INT_READONLY}, {HW_NCPUFOUND, &ncpusfound, SYSCTL_INT_READONLY}, {HW_BYTEORDER, &byte_order, SYSCTL_INT_READONLY}, - {HW_PAGESIZE, &page_size, SYSCTL_INT_READONLY}, + {HW_PAGESIZE, &uvmexp.pagesize, SYSCTL_INT_READONLY}, {HW_DISKCOUNT, &disk_count, SYSCTL_INT_READONLY}, {HW_POWER, &hw_power, SYSCTL_INT_READONLY}, }; -- 2.20.1