summaryrefslogtreecommitdiff
path: root/opcodes/cr16-dis.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-07-04 14:29:44 +0000
committerNick Clifton <nickc@redhat.com>2007-07-04 14:29:44 +0000
commitbdfd3da76f9cf561e407d9ca68a426943e9fb9b1 (patch)
treeac10c367c6029cf063de16a358e9df523643d1c2 /opcodes/cr16-dis.c
parent3587d387d977ad7a8fde6f37318fdf4614d2204e (diff)
downloadbinutils-redhat-bdfd3da76f9cf561e407d9ca68a426943e9fb9b1.tar.gz
* cr16-dis.c (getcinvstring): Add const qualifier to char * parameter.
(print_insn_cr16): Remove cast to char *.
Diffstat (limited to 'opcodes/cr16-dis.c')
-rw-r--r--opcodes/cr16-dis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/cr16-dis.c b/opcodes/cr16-dis.c
index 724cb9bb89..fe1842d4cd 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);