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 | 9de0fc0036742f8c66624fc9c29d4299075ceeba (patch) | |
tree | d9045724f6432f2a365260997c1abf9acb24bf56 /gdb/maint.c | |
parent | 89b3508f8b830a08b0feb0961931971af75043c5 (diff) | |
download | gdb-9de0fc0036742f8c66624fc9c29d4299075ceeba.tar.gz |
* 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 3e1b63f6765..2f85801fd92 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) { |