From patchwork Wed Jun 11 18:53:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 1445 Received: (qmail 12275 invoked by alias); 11 Jun 2014 18:53:25 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 12169 invoked by uid 89); 11 Jun 2014 18:53:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 11 Jun 2014 18:53:23 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5BIrMxq019429 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 11 Jun 2014 14:53:22 -0400 Received: from barimba.redhat.com (ovpn-113-103.phx2.redhat.com [10.3.113.103]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s5BIrJRI005158; Wed, 11 Jun 2014 14:53:21 -0400 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 4/7] remove unneeded cast in symtab.c Date: Wed, 11 Jun 2014 12:53:14 -0600 Message-Id: <1402512797-6082-5-git-send-email-tromey@redhat.com> In-Reply-To: <1402512797-6082-1-git-send-email-tromey@redhat.com> References: <1402512797-6082-1-git-send-email-tromey@redhat.com> This removes an unneeded const cast from symtab.c:add_macro_name. 2014-06-11 Tom Tromey * symtab.c (add_macro_name): Remove unneeded cast. --- gdb/ChangeLog | 4 ++++ gdb/symtab.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/symtab.c b/gdb/symtab.c index 2453f2d..3c9e0dd 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -4284,7 +4284,7 @@ add_macro_name (const char *name, const struct macro_definition *ignore, { struct add_name_data *datum = (struct add_name_data *) user_data; - completion_list_add_name ((char *) name, + completion_list_add_name (name, datum->sym_text, datum->sym_text_len, datum->text, datum->word); }