Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/vmstat vmstat: unexport file-scope variable numdisks



details:   https://anonhg.NetBSD.org/src/rev/25c158e3868c
branches:  trunk
changeset: 362452:25c158e3868c
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Feb 27 19:00:46 2022 +0000

description:
vmstat: unexport file-scope variable numdisks

There is no need to make this variable externally visible.  There are
several more variables in this file that could be unexported, leave
these for someone who knows whether vmstat.c is used by other parts of
the tree as well.

No functional change, OK mrg.

diffstat:

 usr.bin/vmstat/vmstat.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 322ad8f313b3 -r 25c158e3868c usr.bin/vmstat/vmstat.c
--- a/usr.bin/vmstat/vmstat.c   Sun Feb 27 18:57:16 2022 +0000
+++ b/usr.bin/vmstat/vmstat.c   Sun Feb 27 19:00:46 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmstat.c,v 1.251 2022/02/09 07:51:45 wiz Exp $ */
+/* $NetBSD: vmstat.c,v 1.252 2022/02/27 19:00:46 rillig Exp $ */
 
 /*-
  * Copyright (c) 1998, 2000, 2001, 2007, 2019, 2020
@@ -71,7 +71,7 @@
 #if 0
 static char sccsid[] = "@(#)vmstat.c   8.2 (Berkeley) 3/1/95";
 #else
-__RCSID("$NetBSD: vmstat.c,v 1.251 2022/02/09 07:51:45 wiz Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.252 2022/02/27 19:00:46 rillig Exp $");
 #endif
 #endif /* not lint */
 
@@ -329,7 +329,7 @@
 static const int uvmexp2_mib[] = { CTL_VM, VM_UVMEXP2 };
 static const int boottime_mib[] = { CTL_KERN, KERN_BOOTTIME };
 
-int numdisks = 2;
+static int numdisks = 2;
 
 int
 main(int argc, char *argv[])



Home | Main Index | Thread Index | Old Index