Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Make maint.c:match_substring const-correct
@ 2001-12-27  7:38 Mark Kettenis
  2001-12-27 11:34 ` Michael Snyder
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Kettenis @ 2001-12-27  7:38 UTC (permalink / raw)
  To: gdb-patches

Fixes a warning on FreeBSD 4.4.  Checked in as obvious.

Mark

Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* maint.c (match_substring): Make parameters `string' and `substr'
	const.  Make local variable `tok' const.

2001-12-27  Mark Kettenis  <kettenis@gnu.org>

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)
     {


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-12-27 19:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-27  7:38 [PATCH] Make maint.c:match_substring const-correct Mark Kettenis
2001-12-27 11:34 ` Michael Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox