From patchwork Sat Feb 20 19:31:31 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 47863 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 81281B7D78 for ; Wed, 17 Mar 2010 03:15:20 +1100 (EST) Received: from localhost ([127.0.0.1]:38314 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NrZQL-0007Rw-4c for incoming@patchwork.ozlabs.org; Tue, 16 Mar 2010 12:15:17 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NrZ4P-0007z4-B2 for qemu-devel@nongnu.org; Tue, 16 Mar 2010 11:52:37 -0400 Received: from [199.232.76.173] (port=44822 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NrZ4N-0007yN-50 for qemu-devel@nongnu.org; Tue, 16 Mar 2010 11:52:35 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NrZ4M-0007Kn-6E for qemu-devel@nongnu.org; Tue, 16 Mar 2010 11:52:34 -0400 Received: from are.twiddle.net ([75.149.56.221]:34600) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NrZ4I-0007KJ-8x for qemu-devel@nongnu.org; Tue, 16 Mar 2010 11:52:34 -0400 Received: by are.twiddle.net (Postfix, from userid 5000) id 9175BA49; Tue, 16 Mar 2010 08:52:18 -0700 (PDT) Message-Id: <18ee2942b84aa4df1d25cc8bda2cab311f142b23.1268754659.git.rth@twiddle.net> In-Reply-To: References: From: Richard Henderson Date: Sat, 20 Feb 2010 11:31:31 -0800 To: qemu-devel@nongnu.org X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] [PATCH 1/4] tcg-hppa: Fix const errors in hppa-dis.c. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Richard Henderson Acked-by: Stuart Brady --- hppa-dis.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hppa-dis.c b/hppa-dis.c index 9d96d72..49f99c8 100644 --- a/hppa-dis.c +++ b/hppa-dis.c @@ -576,7 +576,7 @@ struct pa_opcode const char *name; unsigned long int match; /* Bits that must be set... */ unsigned long int mask; /* ... in these bits. */ - char *args; + const char *args; enum pa_arch arch; char flags; }; @@ -2753,7 +2753,7 @@ print_insn_hppa (bfd_vma memaddr, disassemble_info *info) int sf = GET_FIELD (insn, 19, 20); const char * const * source = float_format_names; const char * const * dest = float_format_names; - char *t = ""; + const char *t = ""; if (sub == 4) {