mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 09:38:57 +00:00
* ui-file.c (gdb_fopen): Make arguments const.
* ui-file.h (gdb_fopen): Make arguments const.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user