diff options
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-script.c | 4 | ||||
-rw-r--r-- | gdb/cli/cli-script.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c index 0b85bab..198966f 100644 --- a/gdb/cli/cli-script.c +++ b/gdb/cli/cli-script.c @@ -1557,7 +1557,7 @@ document_command (char *comname, int from_tty) struct source_cleanup_lines_args { int old_line; - char *old_file; + const char *old_file; }; static void @@ -1584,7 +1584,7 @@ wrapped_read_command_file (struct ui_out *uiout, void *data) /* Used to implement source_command */ void -script_from_file (FILE *stream, char *file) +script_from_file (FILE *stream, const char *file) { struct cleanup *old_cleanups; struct source_cleanup_lines_args old_lines; diff --git a/gdb/cli/cli-script.h b/gdb/cli/cli-script.h index b051a17..6cdcfd2 100644 --- a/gdb/cli/cli-script.h +++ b/gdb/cli/cli-script.h @@ -24,7 +24,7 @@ struct cmd_list_element; /* Exported to cli/cli-cmds.c */ -extern void script_from_file (FILE *stream, char *file); +extern void script_from_file (FILE *stream, const char *file); extern void document_command (char *, int); |