Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/m68k/m68k Add consts and fix a shadow warning.
details: https://anonhg.NetBSD.org/src/rev/8a41d37a3d27
branches: trunk
changeset: 581546:8a41d37a3d27
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Thu Jun 02 14:24:26 2005 +0000
description:
Add consts and fix a shadow warning.
diffstat:
sys/arch/m68k/m68k/db_disasm.c | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
diffs (117 lines):
diff -r 840651d25b41 -r 8a41d37a3d27 sys/arch/m68k/m68k/db_disasm.c
--- a/sys/arch/m68k/m68k/db_disasm.c Thu Jun 02 14:11:19 2005 +0000
+++ b/sys/arch/m68k/m68k/db_disasm.c Thu Jun 02 14:24:26 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_disasm.c,v 1.32 2005/05/30 21:15:28 he Exp $ */
+/* $NetBSD: db_disasm.c,v 1.33 2005/06/02 14:24:26 tsutsui Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
@@ -63,7 +63,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.32 2005/05/30 21:15:28 he Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.33 2005/06/02 14:24:26 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -98,7 +98,7 @@
static void iprints_wb(dis_buffer_t *, int, int, int);
#endif
static void iprintu_wb(dis_buffer_t *, u_int, int, int);
-static void make_cond(dis_buffer_t *, int , char *);
+static void make_cond(dis_buffer_t *, int , const char *);
static void print_fcond(dis_buffer_t *, char);
static void print_mcond(dis_buffer_t *, char);
static void print_disp(dis_buffer_t *, int, int, int);
@@ -212,7 +212,7 @@
static void
opcode_bitmanip(dis_buffer_t *dbuf, u_short opc)
{
- char *tmp;
+ const char *tmp;
u_short ext;
int sz;
@@ -555,7 +555,7 @@
static void
opcode_misc(dis_buffer_t *dbuf, u_short opc)
{
- char *tmp;
+ const char *tmp;
int sz;
tmp = NULL;
@@ -733,7 +733,7 @@
break;
}
if (tmp) {
- int sz, msz;
+ int msz;
addstr(dbuf, tmp);
@@ -964,7 +964,7 @@
static void
opcode_1110(dis_buffer_t *dbuf, u_short opc)
{
- char *tmp;
+ const char *tmp;
u_short ext;
int type, sz;
@@ -2153,7 +2153,7 @@
static void
opcode_movec(dis_buffer_t *dbuf, u_short opc)
{
- char *tmp;
+ const char *tmp;
u_short ext;
ext = *(dbuf->val + 1);
@@ -2435,7 +2435,7 @@
disp = *nval++;
} else {
dbuf->used += 2;
- disp = *(long *)nval;
+ disp = *(const long *)nval;
nval += 2;
}
@@ -2446,7 +2446,7 @@
odisp = *nval++;
} else if (od == 3) {
dbuf->used += 2;
- odisp = *(long *)nval;
+ odisp = *(const long *)nval;
nval += 2;
}
} else {
@@ -2639,7 +2639,7 @@
disp = *nval++;
} else {
dbuf->used += 2;
- disp = *(long *)nval;
+ disp = *(const long *)nval;
nval += 2;
}
@@ -2650,7 +2650,7 @@
odisp = *nval++;
} else if (od == 3) {
dbuf->used += 2;
- odisp = *(long *)nval;
+ odisp = *(const long *)nval;
nval += 2;
}
} else {
@@ -2769,7 +2769,7 @@
* opcode name including condition found at ``bit''.
*/
static void
-make_cond(dis_buffer_t *dbuf, int bit, char *base)
+make_cond(dis_buffer_t *dbuf, int bit, const char *base)
{
int cc;
const char *ccs;
Home |
Main Index |
Thread Index |
Old Index