Module Name: src Committed By: rillig Date: Sun Feb 27 19:00:46 UTC 2022
Modified Files: src/usr.bin/vmstat: vmstat.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.251 -r1.252 src/usr.bin/vmstat/vmstat.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/vmstat/vmstat.c diff -u src/usr.bin/vmstat/vmstat.c:1.251 src/usr.bin/vmstat/vmstat.c:1.252 --- src/usr.bin/vmstat/vmstat.c:1.251 Wed Feb 9 07:51:45 2022 +++ src/usr.bin/vmstat/vmstat.c Sun Feb 27 19:00:46 2022 @@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19 #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 vmmeter_mib[] = { CTL_V 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[])