diff options
author | Nick Clifton <nickc@redhat.com> | 2007-07-04 14:29:44 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2007-07-04 14:29:44 +0000 |
commit | ddb341a78c008d4989c4d68b039ec40f874ab06a (patch) | |
tree | ea231ffd955f47bc7d699f04fdcdb53600b5f3d5 | |
parent | b49281938d1f72087aab9249c3d593622ebfe580 (diff) | |
download | gdb-ddb341a78c008d4989c4d68b039ec40f874ab06a.zip gdb-ddb341a78c008d4989c4d68b039ec40f874ab06a.tar.gz gdb-ddb341a78c008d4989c4d68b039ec40f874ab06a.tar.bz2 |
* cr16-dis.c (getcinvstring): Add const qualifier to char * parameter.
(print_insn_cr16): Remove cast to char *.
-rw-r--r-- | opcodes/ChangeLog | 6 | ||||
-rw-r--r-- | opcodes/cr16-dis.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index f6c6418..871ed3b 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,9 @@ +2007-07-04 M R Swami Reddy <MR.Swami.Reddy@nsc.com> + + * cr16-dis.c (getcinvstring): Add const qualifier to char * + parameter. + (print_insn_cr16): Remove cast to char *. + 2007-07-03 Nathan Sidwell <nathan@codesourcery.com> * m68k-dis.c (fetch_arg): Add E. Replace length switch with diff --git a/opcodes/cr16-dis.c b/opcodes/cr16-dis.c index 724cb9b..fe1842d 100644 --- a/opcodes/cr16-dis.c +++ b/opcodes/cr16-dis.c @@ -172,7 +172,7 @@ getccstring (unsigned cc) string. This routine is used when disassembling the 'cinv' instruction. */ static char * -getcinvstring (char *str) +getcinvstring (const char *str) { const cinv_entry *cinv; @@ -799,7 +799,7 @@ print_insn_cr16 (bfd_vma memaddr, struct disassemble_info *info) if (is_decoded > 0 && (words[0] << 16 || words[1]) != 0) { if (strneq (instruction->mnemonic, "cinv", 4)) - info->fprintf_func (info->stream,"%s", getcinvstring ((char *)instruction->mnemonic)); + info->fprintf_func (info->stream,"%s", getcinvstring (instruction->mnemonic)); else info->fprintf_func (info->stream, "%s", instruction->mnemonic); |