From b5a3ca8ded5f2ee70739fd6ea9266c725abb5804 Mon Sep 17 00:00:00 2001 From: drochner Date: Wed, 17 May 2006 21:35:45 +0000 Subject: [PATCH] remove a typecast in a macro which is used on the LHS. gcc4 doesn't like it --- sys/arch/alpha/include/db_machdep.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/alpha/include/db_machdep.h b/sys/arch/alpha/include/db_machdep.h index 1b1cb41eddb9..f72eaad5f1e8 100644 --- a/sys/arch/alpha/include/db_machdep.h +++ b/sys/arch/alpha/include/db_machdep.h @@ -1,4 +1,4 @@ -/* $NetBSD: db_machdep.h,v 1.15 2006/04/01 15:44:59 cherry Exp $ */ +/* $NetBSD: db_machdep.h,v 1.16 2006/05/17 21:35:45 drochner Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. @@ -45,7 +45,7 @@ typedef struct trapframe db_regs_t; extern db_regs_t *ddb_regp; /* pointer to current register state */ #define DDB_REGS (ddb_regp) -#define PC_REGS(regs) ((db_addr_t)(regs)->tf_regs[FRAME_PC]) +#define PC_REGS(regs) ((regs)->tf_regs[FRAME_PC]) #define BKPT_ADDR(addr) (addr) /* breakpoint address */ #define BKPT_INST 0x00000080 /* breakpoint instruction */