* maint.c (match_substring): Make parameters string' and
substr'
const. Make local variable `tok' const.
This commit is contained in:
parent
96297dabb3
commit
473e38f346
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
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,
|
||||
|
|
|
@ -189,10 +189,10 @@ maintenance_info_command (char *arg, int from_tty)
|
|||
/* 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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue