summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/ui-file.c2
-rw-r--r--gdb/ui-file.h2
3 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index db4d2fac057..63962355f95 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2013-05-14 Tom Tromey <tromey@redhat.com>
+ * ui-file.c (gdb_fopen): Make arguments const.
+ * ui-file.h (gdb_fopen): Make arguments const.
+
+2013-05-14 Tom Tromey <tromey@redhat.com>
+
* remote.c (remote_set_trace_notes): Make arguments const.
* target.c (update_current_target): Update cast.
* target.h (to_set_trace_notes): Make arguments const.
diff --git a/gdb/ui-file.c b/gdb/ui-file.c
index 5671abdc538..cf5a86d033c 100644
--- a/gdb/ui-file.c
+++ b/gdb/ui-file.c
@@ -663,7 +663,7 @@ stdio_fileopen (FILE *file)
}
struct ui_file *
-gdb_fopen (char *name, char *mode)
+gdb_fopen (const char *name, const char *mode)
{
FILE *f = gdb_fopen_cloexec (name, mode);
diff --git a/gdb/ui-file.h b/gdb/ui-file.h
index 4196524de06..9fef68c656d 100644
--- a/gdb/ui-file.h
+++ b/gdb/ui-file.h
@@ -130,7 +130,7 @@ extern struct ui_file *mem_fileopen (void);
extern struct ui_file *stdio_fileopen (FILE *file);
/* Open NAME returning an STDIO based UI_FILE. */
-extern struct ui_file *gdb_fopen (char *name, char *mode);
+extern struct ui_file *gdb_fopen (const char *name, const char *mode);
/* Create a file which writes to both ONE and TWO. CLOSE_ONE
and CLOSE_TWO indicate whether the original files should be