summaryrefslogtreecommitdiff
path: root/usr.bin/kdump
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2022-02-22 03:31:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2022-02-22 03:31:51 +0000
commite2e02dff97a04a4b8096ef89250547a8b9ee3fdb (patch)
treebed0cb7d2055d0dde8704129752f8e2be0bcdb6c /usr.bin/kdump
parenta5fa914a1f84e0e7cd450e2061af720fb1f1a41e (diff)
need a local nitems() definition
Diffstat (limited to 'usr.bin/kdump')
-rw-r--r--usr.bin/kdump/kdump.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c
index c6e4f1786ad..3ba232903e4 100644
--- a/usr.bin/kdump/kdump.c
+++ b/usr.bin/kdump/kdump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kdump.c,v 1.145 2021/12/23 18:50:32 guenther Exp $ */
+/* $OpenBSD: kdump.c,v 1.146 2022/02/22 03:31:50 deraadt Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -75,6 +75,8 @@
#include "kdump_subr.h"
#include "extern.h"
+#define nitems(_a) (sizeof((_a)) / sizeof((_a)[0]))
+
enum {
TIMESTAMP_NONE,
TIMESTAMP_ABSOLUTE,