From: deraadt Date: Tue, 22 Feb 2022 03:31:50 +0000 (+0000) Subject: need a local nitems() definition X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7f780a7280085e189bf43592d06f0c3c562240af;p=openbsd need a local nitems() definition --- 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,