* ui-file.c (gdb_fopen): Make arguments const.
authorTom Tromey <tromey@redhat.com>
Tue, 14 May 2013 20:35:24 +0000 (20:35 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 14 May 2013 20:35:24 +0000 (20:35 +0000)
* ui-file.h (gdb_fopen): Make arguments const.

gdb/ChangeLog
gdb/ui-file.c
gdb/ui-file.h

index db4d2fac057dabf6cd7319f075a61ad504a60c6f..63962355f950667b928e5ca025df4743f259c4b3 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 5671abdc5389645ca94f47b0fa71bb3a7fd90bab..cf5a86d033cb6e20ed64d86866fccde8b1057604 100644 (file)
@@ -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);
 
index 4196524de0602ccef9ef0aa2b74aa4d22c5e40d3..9fef68c656dd6fa9c039ff97728e296e2ebded06 100644 (file)
@@ -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
This page took 0.028197 seconds and 4 git commands to generate.