diff options
author | Denis Krjuchkov <denis@crazydev.net> | 2013-02-02 20:20:24 +0600 |
---|---|---|
committer | Denis Krjuchkov <denis@crazydev.net> | 2013-02-02 20:20:24 +0600 |
commit | 227eca7d28805122f52b20117e6747cc740a36f8 (patch) | |
tree | 8c618a798079104460e414c365cad6fb61ab529e | |
parent | 9399b0ea5279871262608d66f00b574be4a81268 (diff) |
ExcludeList.cxx: use FOpen
-rw-r--r-- | src/ExcludeList.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ExcludeList.cxx b/src/ExcludeList.cxx index 50cdc1c0e..0daa432dd 100644 --- a/src/ExcludeList.cxx +++ b/src/ExcludeList.cxx @@ -25,16 +25,16 @@ #include "config.h" #include "ExcludeList.hxx" #include "fs/Path.hxx" +#include "fs/FileSystem.hxx" #include <assert.h> #include <string.h> -#include <stdio.h> #include <errno.h> bool 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 (errno != ENOENT) { const char *msg = g_strerror(errno); |