Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/vax/vax Fix late "constifying" in ddb.
details: https://anonhg.NetBSD.org/src/rev/0eedad3ffd64
branches: trunk
changeset: 503009:0eedad3ffd64
user: ragge <ragge%NetBSD.org@localhost>
date: Sun Jan 28 20:47:45 2001 +0000
description:
Fix late "constifying" in ddb.
diffstat:
sys/arch/vax/vax/db_disasm.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (68 lines):
diff -r d879c947e952 -r 0eedad3ffd64 sys/arch/vax/vax/db_disasm.c
--- a/sys/arch/vax/vax/db_disasm.c Sun Jan 28 20:04:50 2001 +0000
+++ b/sys/arch/vax/vax/db_disasm.c Sun Jan 28 20:47:45 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_disasm.c,v 1.10 1998/04/13 12:10:27 ragge Exp $ */
+/* $NetBSD: db_disasm.c,v 1.11 2001/01/28 20:47:45 ragge Exp $ */
/*
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
* All rights reserved.
@@ -329,19 +329,19 @@
break;
case 5: /* register */
- add_str(ib, my_db_regs[reg].name);
+ add_str(ib, (char *)my_db_regs[reg].name);
break;
case 6: /* register deferred */
add_char(ib, '(');
- add_str(ib, my_db_regs[reg].name);
+ add_str(ib, (char *)my_db_regs[reg].name);
add_char(ib, ')');
break;
case 7: /* autodecrement */
add_char(ib, '-');
add_char(ib, '(');
- add_str(ib, my_db_regs[reg].name);
+ add_str(ib, (char *)my_db_regs[reg].name);
add_char(ib, ')');
if (reg == 0x0F) { /* pc is not allowed in this mode */
err_print("autodecrement not allowd for PC.\n");
@@ -381,7 +381,7 @@
break;
}
add_char(ib, '(');
- add_str(ib, my_db_regs[reg].name);
+ add_str(ib, (char *)my_db_regs[reg].name);
add_char(ib, ')');
add_char(ib, '+');
break;
@@ -397,7 +397,7 @@
/* add_str (ib, "b^"); */
add_int(ib, tmp);
add_char(ib, '(');
- add_str(ib, my_db_regs[reg].name);
+ add_str(ib, (char *)my_db_regs[reg].name);
add_char(ib, ')');
break;
@@ -412,7 +412,7 @@
/* add_str (ib, "w^"); */
add_int(ib, tmp);
add_char(ib, '(');
- add_str(ib, my_db_regs[reg].name);
+ add_str(ib, (char *)my_db_regs[reg].name);
add_char(ib, ')');
break;
@@ -427,7 +427,7 @@
/* add_str (ib, "l^"); */
add_int(ib, tmp);
add_char(ib, '(');
- add_str(ib, my_db_regs[reg].name);
+ add_str(ib, (char *)my_db_regs[reg].name);
add_char(ib, ')');
break;
Home |
Main Index |
Thread Index |
Old Index