From patchwork Wed Jun 11 18:53:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 1446 Received: (qmail 12335 invoked by alias); 11 Jun 2014 18:53:26 -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 12197 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 s5BIrLQw004382 (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 s5BIrJRH005158; Wed, 11 Jun 2014 14:53:21 -0400 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 3/7] fix up parse_cli_boolean_value after rebase Date: Wed, 11 Jun 2014 12:53:13 -0600 Message-Id: <1402512797-6082-4-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 changes a parameter of parse_cli_boolean_value to be const. 2014-06-11 Tom Tromey * cli/cli-setshow.h (parse_cli_boolean_value): Update. * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const. --- gdb/ChangeLog | 5 +++++ gdb/cli/cli-setshow.c | 2 +- gdb/cli/cli-setshow.h | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/cli/cli-setshow.c b/gdb/cli/cli-setshow.c index 75f1526..d14d361 100644 --- a/gdb/cli/cli-setshow.c +++ b/gdb/cli/cli-setshow.c @@ -76,7 +76,7 @@ parse_auto_binary_operation (const char *arg) /* See cli-setshow.h. */ int -parse_cli_boolean_value (char *arg) +parse_cli_boolean_value (const char *arg) { int length; diff --git a/gdb/cli/cli-setshow.h b/gdb/cli/cli-setshow.h index a41a66d..a68d610 100644 --- a/gdb/cli/cli-setshow.h +++ b/gdb/cli/cli-setshow.h @@ -21,7 +21,7 @@ struct cmd_list_element; /* Parse ARG, an option to a boolean variable. Returns 1 for true, 0 for false, and -1 if invalid. */ -extern int parse_cli_boolean_value (char *arg); +extern int parse_cli_boolean_value (const char *arg); extern void do_set_command (char *arg, int from_tty, struct cmd_list_element *c);