aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2001-12-27 15:37:35 +0000
committerMark Kettenis <kettenis@gnu.org>2001-12-27 15:37:35 +0000
commit473e38f3467f314c1cadd0d816283d94c3727c2f (patch)
tree488c421f93552de80de5c2c1d47862a4c1d47ddb /gdb
parent96297dabb381cee5a650c1fc0dd60c5ef6331dbd (diff)
downloadgdb-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')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/maint.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 94c7148..69fb886 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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,
FCTRL_REGNUM, FPC_REGNUM, FSTAT_REGNUM, FTAG_REGNUM, FCS_REGNUM,
FCOFF_REGNUM, FDS_REGNUM, FDOFF_REGNUM, FOP_REGNUM,
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)
{