* cr16-dis.c (getcinvstring): Add const qualifier to char * parameter.
authorNick Clifton <nickc@redhat.com>
Wed, 4 Jul 2007 14:29:44 +0000 (14:29 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 4 Jul 2007 14:29:44 +0000 (14:29 +0000)
  (print_insn_cr16): Remove cast to char *.

opcodes/ChangeLog
opcodes/cr16-dis.c

index f6c6418361664bee15dcb813c6ed9ae3878b16ce..871ed3bf8b6e2abe28ef1c75d99e07e03d521b3e 100644 (file)
@@ -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
index 724cb9bb89010492aacf3efaa189d181402bde94..fe1842d4cdcd0ce6e3c9312cc08410c6e1716f8a 100644 (file)
@@ -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);
 
This page took 0.03469 seconds and 4 git commands to generate.