summaryrefslogtreecommitdiff
path: root/sys/arch/hppa64/hppa64/db_interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/hppa64/hppa64/db_interface.c')
-rw-r--r--sys/arch/hppa64/hppa64/db_interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa64/hppa64/db_interface.c b/sys/arch/hppa64/hppa64/db_interface.c
index 4dd1f4e7485..4aa012b103d 100644
--- a/sys/arch/hppa64/hppa64/db_interface.c
+++ b/sys/arch/hppa64/hppa64/db_interface.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_interface.c,v 1.3 2014/03/29 18:09:29 guenther Exp $ */
+/* $OpenBSD: db_interface.c,v 1.4 2014/07/13 12:11:01 jasper Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -107,7 +107,7 @@ struct db_variable db_regs[] = {
{ "pidr1", (long *)&ddb_regs.tf_pidr1, FCN_NULL },
{ "pidr2", (long *)&ddb_regs.tf_pidr2, FCN_NULL },
};
-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;
void