From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 52626 invoked by alias); 21 Sep 2017 12:48:03 -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 50986 invoked by uid 89); 21 Sep 2017 12:48:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= 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; Thu, 21 Sep 2017 12:47:59 +0000 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0E83FC0733E3; Thu, 21 Sep 2017 12:47:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 0E83FC0733E3 Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=sergiodj@redhat.com Received: from localhost (unused-10-15-17-193.yyz.redhat.com [10.15.17.193]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DBECE5EE10; Thu, 21 Sep 2017 12:47:57 +0000 (UTC) From: Sergio Durigan Junior To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: [RFA 45/67] Constify cd_command References: <20170921051023.19023-1-tom@tromey.com> <20170921051023.19023-46-tom@tromey.com> Date: Thu, 21 Sep 2017 12:48:00 -0000 In-Reply-To: <20170921051023.19023-46-tom@tromey.com> (Tom Tromey's message of "Wed, 20 Sep 2017 23:10:01 -0600") Message-ID: <87h8vwkyki.fsf@redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2017-09/txt/msg00622.txt.bz2 On Thursday, September 21 2017, Tom Tromey wrote: > ChangeLog > 2017-09-20 Tom Tromey > > * cli/cli-cmds.h (cd_command): Constify. > * cli/cli-cmds.c (cd_command): Constify. I've been meaning to do that. This is OK by me. Thanks, > --- > gdb/ChangeLog | 5 +++++ > gdb/cli/cli-cmds.c | 2 +- > gdb/cli/cli-cmds.h | 2 +- > 3 files changed, 7 insertions(+), 2 deletions(-) > > diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c > index 4cc9fa6..d87722f 100644 > --- a/gdb/cli/cli-cmds.c > +++ b/gdb/cli/cli-cmds.c > @@ -392,7 +392,7 @@ pwd_command (char *args, int from_tty) > } > > void > -cd_command (char *dir, int from_tty) > +cd_command (const char *dir, int from_tty) > { > int len; > /* Found something other than leading repetitions of "/..". */ > diff --git a/gdb/cli/cli-cmds.h b/gdb/cli/cli-cmds.h > index 1122a97..34d19f5 100644 > --- a/gdb/cli/cli-cmds.h > +++ b/gdb/cli/cli-cmds.h > @@ -110,7 +110,7 @@ int is_complete_command (struct cmd_list_element *cmd); > > /* Exported to gdb/main.c */ > > -extern void cd_command (char *, int); > +extern void cd_command (const char *, int); > > /* Exported to gdb/top.c and gdb/main.c */ > > -- > 2.9.4 -- Sergio GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36 Please send encrypted e-mail if possible http://sergiodj.net/