aboutsummaryrefslogtreecommitdiff
path: root/opcodes/ip2k-dis.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-02-23 16:04:40 +0000
committerNick Clifton <nickc@redhat.com>2005-02-23 16:04:40 +0000
commit33b71eeb2e25ed4cb83a1fe43cc3d0625dd51e40 (patch)
treeec8d2e60293fe2b7b60c7a275f6c6acddad236a3 /opcodes/ip2k-dis.c
parente9c55a7bd7f322580c8c7ecd9ba15feba74488e8 (diff)
downloadgdb-33b71eeb2e25ed4cb83a1fe43cc3d0625dd51e40.zip
gdb-33b71eeb2e25ed4cb83a1fe43cc3d0625dd51e40.tar.gz
gdb-33b71eeb2e25ed4cb83a1fe43cc3d0625dd51e40.tar.bz2
Fix compile time warnings generated by gcc 4.0
Diffstat (limited to 'opcodes/ip2k-dis.c')
-rw-r--r--opcodes/ip2k-dis.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/opcodes/ip2k-dis.c b/opcodes/ip2k-dis.c
index 3abcd95..ee211c6 100644
--- a/opcodes/ip2k-dis.c
+++ b/opcodes/ip2k-dis.c
@@ -49,11 +49,11 @@ static void print_keyword
static void print_insn_normal
(CGEN_CPU_DESC, void *, const CGEN_INSN *, CGEN_FIELDS *, bfd_vma, int);
static int print_insn
- (CGEN_CPU_DESC, bfd_vma, disassemble_info *, char *, unsigned);
+ (CGEN_CPU_DESC, bfd_vma, disassemble_info *, bfd_byte *, unsigned);
static int default_print_insn
(CGEN_CPU_DESC, bfd_vma, disassemble_info *) ATTRIBUTE_UNUSED;
static int read_insn
- (CGEN_CPU_DESC, bfd_vma, disassemble_info *, char *, int, CGEN_EXTRACT_INFO *,
+ (CGEN_CPU_DESC, bfd_vma, disassemble_info *, bfd_byte *, int, CGEN_EXTRACT_INFO *,
unsigned long *);
/* -- disassembler routines inserted here */
@@ -452,7 +452,7 @@ static int
read_insn (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
bfd_vma pc,
disassemble_info *info,
- char *buf,
+ bfd_byte *buf,
int buflen,
CGEN_EXTRACT_INFO *ex_info,
unsigned long *insn_value)
@@ -482,7 +482,7 @@ static int
print_insn (CGEN_CPU_DESC cd,
bfd_vma pc,
disassemble_info *info,
- char *buf,
+ bfd_byte *buf,
unsigned int buflen)
{
CGEN_INSN_INT insn_value;
@@ -506,7 +506,7 @@ print_insn (CGEN_CPU_DESC cd,
/* The instructions are stored in hash lists.
Pick the first one and keep trying until we find the right one. */
- insn_list = CGEN_DIS_LOOKUP_INSN (cd, buf, insn_value);
+ insn_list = CGEN_DIS_LOOKUP_INSN (cd, (char *) buf, insn_value);
while (insn_list != NULL)
{
const CGEN_INSN *insn = insn_list->insn;
@@ -590,7 +590,7 @@ print_insn (CGEN_CPU_DESC cd,
static int
default_print_insn (CGEN_CPU_DESC cd, bfd_vma pc, disassemble_info *info)
{
- char buf[CGEN_MAX_INSN_SIZE];
+ bfd_byte buf[CGEN_MAX_INSN_SIZE];
int buflen;
int status;