ExcludeList.cxx: use FOpen

This commit is contained in:
Denis Krjuchkov 2013-02-02 20:20:24 +06:00
parent 9399b0ea52
commit 227eca7d28

View File

@ -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);