From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29773 invoked by alias); 27 Dec 2001 19:34:07 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 29666 invoked from network); 27 Dec 2001 19:34:03 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 27 Dec 2001 19:34:03 -0000 Received: from redhat.com (reddwarf.cygnus.com [205.180.231.12]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id LAA23927; Thu, 27 Dec 2001 11:33:35 -0800 (PST) Message-ID: <3C2B7698.3C69270@redhat.com> Date: Thu, 27 Dec 2001 11:34:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2smp i686) X-Accept-Language: en MIME-Version: 1.0 To: Mark Kettenis CC: gdb-patches@sources.redhat.com Subject: Re: [PATCH] Make maint.c:match_substring const-correct References: <200112271537.fBRFbfH35990@elgar.my.domain> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2001-12/txt/msg00592.txt.bz2 Mark Kettenis wrote: > > Fixes a warning on FreeBSD 4.4. Checked in as obvious. > > Mark Thank you. > > Index: ChangeLog > from Mark Kettenis > > * maint.c (match_substring): Make parameters `string' and `substr' > const. Make local variable `tok' const. > > 2001-12-27 Mark Kettenis > > Index: maint.c > =================================================================== > RCS file: /cvs/src/src/gdb/maint.c,v > retrieving revision 1.19 > diff -u -p -r1.19 maint.c > --- maint.c 2001/12/21 17:30:02 1.19 > +++ maint.c 2001/12/27 15:36:43 > @@ -189,10 +189,10 @@ maintenance_info_command (char *arg, int > /* Mini tokenizing lexer for 'maint info sections' command. */ > > static int > -match_substring (char *string, char *substr) > +match_substring (const char *string, const char *substr) > { > int substr_len = strlen(substr); > - char *tok; > + const char *tok; > > while ((tok = strstr (string, substr)) != NULL) > {