const. Make local variable `tok' const.
+2001-12-27 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>
* config/i386/tm-i386.h (FP7_REGNUM, FIRST_FPU_CTRL_REGNUM,
/* 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)
{