/* UI_FILE - a generic STDIO like output stream.
- Copyright (C) 1999-2017 Free Software Foundation, Inc.
+ Copyright (C) 1999-2018 Free Software Foundation, Inc.
This file is part of GDB.
void
ui_file::putstrn (const char *str, int n, int quoter)
{
- fputstrn_unfiltered (str, n, quoter, this);
+ fputstrn_unfiltered (str, n, quoter, fputc_unfiltered, this);
}
int
m_close_p = false;
}
- FILE *f = gdb_fopen_cloexec (name, mode);
+ gdb_file_up f = gdb_fopen_cloexec (name, mode);
if (f == NULL)
return false;
- set_stream (f);
+ set_stream (f.release ());
m_close_p = true;
return true;