summaryrefslogtreecommitdiff
path: root/sys/arch/arm
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2014-07-13 12:11:02 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2014-07-13 12:11:02 +0000
commit80e50dabeaa559b5257135a152de27644db4432f (patch)
tree709cd9b655dfef589834933b2becb4db65e32a28 /sys/arch/arm
parentf1b98cae21f0f62799fbbc23fee97381c77bda62 (diff)
use nitems() instead of handrolling something identical
ok mpi@ sthen@
Diffstat (limited to 'sys/arch/arm')
-rw-r--r--sys/arch/arm/arm/db_interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/arm/arm/db_interface.c b/sys/arch/arm/arm/db_interface.c
index 00030940417..c934a3796cc 100644
--- a/sys/arch/arm/arm/db_interface.c
+++ b/sys/arch/arm/arm/db_interface.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_interface.c,v 1.7 2013/04/30 11:50:47 patrick Exp $ */
+/* $OpenBSD: db_interface.c,v 1.8 2014/07/13 12:11:01 jasper Exp $ */
/* $NetBSD: db_interface.c,v 1.34 2003/10/26 23:11:15 chris Exp $ */
/*
@@ -90,7 +90,7 @@ struct db_variable db_regs[] = {
extern label_t *db_recover;
-struct db_variable * db_eregs = db_regs + sizeof(db_regs)/sizeof(db_regs[0]);
+struct db_variable * db_eregs = db_regs + nitems(db_regs);
int db_active = 0;