artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f780a7
)
need a local nitems() definition
author
deraadt
<deraadt@openbsd.org>
Tue, 22 Feb 2022 03:33:12 +0000
(
03:33
+0000)
committer
deraadt
<deraadt@openbsd.org>
Tue, 22 Feb 2022 03:33:12 +0000
(
03:33
+0000)
usr.bin/systat/vmstat.c
patch
|
blob
|
history
diff --git
a/usr.bin/systat/vmstat.c
b/usr.bin/systat/vmstat.c
index
ba8d1a5
..
e1f3fd2
100644
(file)
--- a/
usr.bin/systat/vmstat.c
+++ b/
usr.bin/systat/vmstat.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: vmstat.c,v 1.9
2 2022/02/20 00:09:29
deraadt Exp $ */
+/* $OpenBSD: vmstat.c,v 1.9
3 2022/02/22 03:33:12
deraadt Exp $ */
/* $NetBSD: vmstat.c,v 1.5 1996/05/10 23:16:40 thorpej Exp $ */
/*-
@@
-59,6
+59,7
@@
#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
+#define nitems(_a) (sizeof((_a)) / sizeof((_a)[0]))
static struct Info {
struct cpustats cpustats;