make remote_protocol_features "const"
[deliverable/binutils-gdb.git] / gdb / ui-file.c
index bb904c9ad499a869a31df61921aff029ebda373e..cf5a86d033cb6e20ed64d86866fccde8b1057604 100644 (file)
@@ -24,6 +24,7 @@
 #include "gdb_obstack.h"
 #include "gdb_string.h"
 #include "gdb_select.h"
+#include "filestuff.h"
 
 #include <errno.h>
 
@@ -662,9 +663,9 @@ stdio_fileopen (FILE *file)
 }
 
 struct ui_file *
-gdb_fopen (char *name, char *mode)
+gdb_fopen (const char *name, const char *mode)
 {
-  FILE *f = fopen (name, mode);
+  FILE *f = gdb_fopen_cloexec (name, mode);
 
   if (f == NULL)
     return NULL;
This page took 0.024492 seconds and 4 git commands to generate.