aboutsummaryrefslogtreecommitdiff
path: root/gdb/maint.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/maint.c')
-rw-r--r--gdb/maint.c4
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)
{