+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
string. This routine is used when disassembling the 'cinv' instruction. */
static char *
-getcinvstring (char *str)
+getcinvstring (const char *str)
{
const cinv_entry *cinv;
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);