aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Krjuchkov <denis@crazydev.net>2013-02-02 20:19:25 +0600
committerDenis Krjuchkov <denis@crazydev.net>2013-02-02 20:19:25 +0600
commit9399b0ea5279871262608d66f00b574be4a81268 (patch)
tree1a4791709d6722ea5646753eb90d3c48e72e23b1 /src
parent17dca254a3f451ffb1494375bbb3e67bc699d191 (diff)
downloadmpd-9399b0ea5279871262608d66f00b574be4a81268.tar.gz
mpd-9399b0ea5279871262608d66f00b574be4a81268.tar.xz
mpd-9399b0ea5279871262608d66f00b574be4a81268.zip
ConfigFile.cxx: use FOpenMode
Diffstat (limited to 'src')
-rw-r--r--src/ConfigFile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ConfigFile.cxx b/src/ConfigFile.cxx
index 695e7803e..e94f3f238 100644
--- a/src/ConfigFile.cxx
+++ b/src/ConfigFile.cxx
@@ -271,7 +271,7 @@ ReadConfigFile(ConfigData &config_data, const Path &path, GError **error_r)
g_debug("loading file %s", path_utf8.c_str());
- FILE *fp = FOpen(path, "r");
+ FILE *fp = FOpen(path, FOpenMode::ReadText);
if (fp == nullptr) {
g_set_error(error_r, config_quark(), errno,
"Failed to open %s: %s",