From 7f780a7280085e189bf43592d06f0c3c562240af Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 22 Feb 2022 03:31:50 +0000 Subject: [PATCH] need a local nitems() definition --- usr.bin/kdump/kdump.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, -- 2.20.1