Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 make it "static long nil; " as it's used a...
details: https://anonhg.NetBSD.org/src/rev/20a2d8f037b1
branches: trunk
changeset: 550911:20a2d8f037b1
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Aug 25 04:51:10 2003 +0000
description:
make it "static long nil;" as it's used as &nil in an array wanting long *'s.
makes GCC3 happy.
diffstat:
sys/arch/arm/arm32/db_interface.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (40 lines):
diff -r 8aa4b23f4d49 -r 20a2d8f037b1 sys/arch/arm/arm32/db_interface.c
--- a/sys/arch/arm/arm32/db_interface.c Mon Aug 25 04:46:53 2003 +0000
+++ b/sys/arch/arm/arm32/db_interface.c Mon Aug 25 04:51:10 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_interface.c,v 1.32 2003/07/15 00:24:41 lukem Exp $ */
+/* $NetBSD: db_interface.c,v 1.33 2003/08/25 04:51:10 mrg Exp $ */
/*
* Copyright (c) 1996 Scott K. Stevens
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.32 2003/07/15 00:24:41 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.33 2003/08/25 04:51:10 mrg Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -64,7 +64,7 @@
#define db_printf printf
#endif
-static int nil;
+static long nil;
int db_access_und_sp __P((const struct db_variable *, db_expr_t *, int));
int db_access_abt_sp __P((const struct db_variable *, db_expr_t *, int));
@@ -93,9 +93,9 @@
{ "svc_sp", (long *)&DDB_REGS->tf_svc_sp, FCN_NULL, },
{ "svc_lr", (long *)&DDB_REGS->tf_svc_lr, FCN_NULL, },
{ "pc", (long *)&DDB_REGS->tf_pc, FCN_NULL, },
- { "und_sp", (long *)&nil, db_access_und_sp, },
- { "abt_sp", (long *)&nil, db_access_abt_sp, },
- { "irq_sp", (long *)&nil, db_access_irq_sp, },
+ { "und_sp", &nil, db_access_und_sp, },
+ { "abt_sp", &nil, db_access_abt_sp, },
+ { "irq_sp", &nil, db_access_irq_sp, },
};
const struct db_variable * const db_eregs = db_regs + sizeof(db_regs)/sizeof(db_regs[0]);
Home |
Main Index |
Thread Index |
Old Index