Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/include Make lint happy by not assigning to...
details: https://anonhg.NetBSD.org/src/rev/571f023bee9d
branches: trunk
changeset: 544195:571f023bee9d
user: matt <matt%NetBSD.org@localhost>
date: Fri Mar 14 06:23:48 2003 +0000
description:
Make lint happy by not assigning to casted lvalue.
diffstat:
sys/arch/powerpc/include/db_machdep.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 34a9e8bcbca1 -r 571f023bee9d sys/arch/powerpc/include/db_machdep.h
--- a/sys/arch/powerpc/include/db_machdep.h Fri Mar 14 06:22:51 2003 +0000
+++ b/sys/arch/powerpc/include/db_machdep.h Fri Mar 14 06:23:48 2003 +0000
@@ -1,5 +1,5 @@
/* $OpenBSD: db_machdep.h,v 1.2 1997/03/21 00:48:48 niklas Exp $ */
-/* $NetBSD: db_machdep.h,v 1.15 2003/01/22 21:44:54 kleink Exp $ */
+/* $NetBSD: db_machdep.h,v 1.16 2003/03/14 06:23:48 matt Exp $ */
/*
* Mach Operating System
@@ -63,7 +63,7 @@
extern db_regs_t ddb_regs; /* register state */
#define DDB_REGS (&ddb_regs)
-#define PC_REGS(regs) ((db_addr_t)(regs)->iar)
+#define PC_REGS(regs) (*(db_addr_t *)&(regs)->iar)
#define BKPT_ASM "trap" /* should match BKPT_INST */
#define BKPT_INST 0x7fe00008 /* breakpoint instruction */
Home |
Main Index |
Thread Index |
Old Index