diff options
Diffstat (limited to 'util/file.cc')
-rw-r--r-- | util/file.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/file.cc b/util/file.cc index 25ff8183a..aa61cf9a9 100644 --- a/util/file.cc +++ b/util/file.cc @@ -41,9 +41,9 @@ scoped_fd::~scoped_fd() { } } -scoped_FILE::~scoped_FILE() { - if (file_ && std::fclose(file_)) { - std::cerr << "Could not close file " << std::endl; +void scoped_FILE_closer::Close(std::FILE *file) { + if (file && std::fclose(file)) { + std::cerr << "Could not close file " << file << std::endl; std::abort(); } } |