Skip to content
Snippets Groups Projects
Commit ddb341a7 authored by Nick Clifton's avatar Nick Clifton
Browse files

* cr16-dis.c (getcinvstring): Add const qualifier to char * parameter.

  (print_insn_cr16): Remove cast to char *.
parent b4928193
No related branches found
No related tags found
No related merge requests found
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> 2007-07-03 Nathan Sidwell <nathan@codesourcery.com>
* m68k-dis.c (fetch_arg): Add E. Replace length switch with * m68k-dis.c (fetch_arg): Add E. Replace length switch with
......
...@@ -172,7 +172,7 @@ getccstring (unsigned cc) ...@@ -172,7 +172,7 @@ getccstring (unsigned cc)
string. This routine is used when disassembling the 'cinv' instruction. */ string. This routine is used when disassembling the 'cinv' instruction. */
static char * static char *
getcinvstring (char *str) getcinvstring (const char *str)
{ {
const cinv_entry *cinv; const cinv_entry *cinv;
...@@ -799,7 +799,7 @@ print_insn_cr16 (bfd_vma memaddr, struct disassemble_info *info) ...@@ -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 (is_decoded > 0 && (words[0] << 16 || words[1]) != 0)
{ {
if (strneq (instruction->mnemonic, "cinv", 4)) 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 else
info->fprintf_func (info->stream, "%s", instruction->mnemonic); info->fprintf_func (info->stream, "%s", instruction->mnemonic);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment