diff options
author | Mark Kettenis <kettenis@gnu.org> | 2001-12-27 15:37:35 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2001-12-27 15:37:35 +0000 |
commit | 473e38f3467f314c1cadd0d816283d94c3727c2f (patch) | |
tree | 488c421f93552de80de5c2c1d47862a4c1d47ddb /gdb/maint.c | |
parent | 96297dabb381cee5a650c1fc0dd60c5ef6331dbd (diff) | |
download | gdb-473e38f3467f314c1cadd0d816283d94c3727c2f.zip gdb-473e38f3467f314c1cadd0d816283d94c3727c2f.tar.gz gdb-473e38f3467f314c1cadd0d816283d94c3727c2f.tar.bz2 |
* maint.c (match_substring): Make parameters `string' and `substr'
const. Make local variable `tok' const.
Diffstat (limited to 'gdb/maint.c')
-rw-r--r-- | gdb/maint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/maint.c b/gdb/maint.c index 3e1b63f..2f85801 100644 --- a/gdb/maint.c +++ b/gdb/maint.c @@ -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) { |