From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 55436 invoked by alias); 21 Sep 2017 05:40:26 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 55407 invoked by uid 89); 21 Sep 2017 05:40:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.5 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=ENABLE X-HELO: gproxy7-pub.mail.unifiedlayer.com Received: from gproxy7-pub.mail.unifiedlayer.com (HELO gproxy7-pub.mail.unifiedlayer.com) (70.40.196.235) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 21 Sep 2017 05:40:24 +0000 Received: from cmgw2 (unknown [10.0.90.83]) by gproxy7.mail.unifiedlayer.com (Postfix) with ESMTP id 79394215E20 for ; Wed, 20 Sep 2017 23:40:23 -0600 (MDT) Received: from box522.bluehost.com ([74.220.219.122]) by cmgw2 with id C5gL1w00v2f2jeq015gPnW; Wed, 20 Sep 2017 23:40:23 -0600 X-Authority-Analysis: v=2.2 cv=dZfw5Tfe c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=2JCJgTwv5E4A:10 a=zstS-IiYAAAA:8 a=zEo8IxdYtRfteiYaikgA:9 a=4G6NA9xxw8l3yy4pmD5M:22 Received: from 75-166-76-94.hlrn.qwest.net ([75.166.76.94]:36574 helo=bapiya.Home) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1dutl2-00118R-7W; Wed, 20 Sep 2017 23:10:40 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFA 62/67] Constify some commands in printcmd.c Date: Thu, 21 Sep 2017 05:40:00 -0000 Message-Id: <20170921051023.19023-63-tom@tromey.com> In-Reply-To: <20170921051023.19023-1-tom@tromey.com> References: <20170921051023.19023-1-tom@tromey.com> X-BWhitelist: no X-Exim-ID: 1dutl2-00118R-7W X-Source-Sender: 75-166-76-94.hlrn.qwest.net (bapiya.Home) [75.166.76.94]:36574 X-Source-Auth: tom+tromey.com X-Email-Count: 47 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== X-Local-Domain: yes X-SW-Source: 2017-09/txt/msg00577.txt.bz2 ChangeLog 2017-09-20 Tom Tromey * printcmd.c (map_display_numbers, undisplay_command) (enable_disable_display_command, enable_display_command) (disable_display_command): Constify. --- gdb/ChangeLog | 6 ++++++ gdb/printcmd.c | 10 +++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 033d687..de1f76c 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -1795,7 +1795,7 @@ delete_display (struct display *display) ARGS. DATA is passed unmodified to FUNCTION. */ static void -map_display_numbers (char *args, +map_display_numbers (const char *args, void (*function) (struct display *, void *), void *data) @@ -1840,7 +1840,7 @@ do_delete_display (struct display *d, void *data) /* "undisplay" command. */ static void -undisplay_command (char *args, int from_tty) +undisplay_command (const char *args, int from_tty) { if (args == NULL) { @@ -2085,7 +2085,7 @@ do_enable_disable_display (struct display *d, void *data) commands. ENABLE decides what to do. */ static void -enable_disable_display_command (char *args, int from_tty, int enable) +enable_disable_display_command (const char *args, int from_tty, int enable) { if (args == NULL) { @@ -2102,7 +2102,7 @@ enable_disable_display_command (char *args, int from_tty, int enable) /* The "enable display" command. */ static void -enable_display_command (char *args, int from_tty) +enable_display_command (const char *args, int from_tty) { enable_disable_display_command (args, from_tty, 1); } @@ -2110,7 +2110,7 @@ enable_display_command (char *args, int from_tty) /* The "disable display" command. */ static void -disable_display_command (char *args, int from_tty) +disable_display_command (const char *args, int from_tty) { enable_disable_display_command (args, from_tty, 0); } -- 2.9.4