Commit 227eca7d authored by Denis Krjuchkov's avatar Denis Krjuchkov

ExcludeList.cxx: use FOpen

parent 9399b0ea
...@@ -25,16 +25,16 @@ ...@@ -25,16 +25,16 @@
#include "config.h" #include "config.h"
#include "ExcludeList.hxx" #include "ExcludeList.hxx"
#include "fs/Path.hxx" #include "fs/Path.hxx"
#include "fs/FileSystem.hxx"
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#include <stdio.h>
#include <errno.h> #include <errno.h>
bool bool
ExcludeList::LoadFile(const Path &path_fs) ExcludeList::LoadFile(const Path &path_fs)
{ {
FILE *file = fopen(path_fs.c_str(), "r"); FILE *file = FOpen(path_fs, FOpenMode::ReadText);
if (file == NULL) { if (file == NULL) {
if (errno != ENOENT) { if (errno != ENOENT) {
const char *msg = g_strerror(errno); const char *msg = g_strerror(errno);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment