aboutsummaryrefslogtreecommitdiffstats
path: root/src/input
diff options
context:
space:
mode:
authorDenis Krjuchkov <denis@crazydev.net>2013-12-05 03:53:43 +0600
committerDenis Krjuchkov <denis@crazydev.net>2013-12-05 03:53:43 +0600
commit0a6c4c31b2a9e79c9c0119202f9e50e123f98ac6 (patch)
treeeeea8005badbf5b9c8ccea8b961ea498d2da3d47 /src/input
parent02fcf184b5620c9ccbbc26024f9b0f341061a39a (diff)
downloadmpd-0a6c4c31b2a9e79c9c0119202f9e50e123f98ac6.tar.gz
mpd-0a6c4c31b2a9e79c9c0119202f9e50e123f98ac6.tar.xz
mpd-0a6c4c31b2a9e79c9c0119202f9e50e123f98ac6.zip
fs/Traits: split PathTraits type into PathTraitsFS and PathTraitsUTF8
Diffstat (limited to 'src/input')
-rw-r--r--src/input/ArchiveInputPlugin.cxx2
-rw-r--r--src/input/FileInputPlugin.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/input/ArchiveInputPlugin.cxx b/src/input/ArchiveInputPlugin.cxx
index 72572defc..5797caced 100644
--- a/src/input/ArchiveInputPlugin.cxx
+++ b/src/input/ArchiveInputPlugin.cxx
@@ -46,7 +46,7 @@ input_archive_open(const char *pathname,
const struct archive_plugin *arplug;
InputStream *is;
- if (!PathTraits::IsAbsoluteFS(pathname))
+ if (!PathTraitsFS::IsAbsolute(pathname))
return nullptr;
char *pname = g_strdup(pathname);
diff --git a/src/input/FileInputPlugin.cxx b/src/input/FileInputPlugin.cxx
index dd6a28b97..5a63a469c 100644
--- a/src/input/FileInputPlugin.cxx
+++ b/src/input/FileInputPlugin.cxx
@@ -60,7 +60,7 @@ input_file_open(const char *filename,
int fd, ret;
struct stat st;
- if (!PathTraits::IsAbsoluteFS(filename))
+ if (!PathTraitsFS::IsAbsolute(filename))
return nullptr;
fd = open_cloexec(filename, O_RDONLY|O_BINARY, 0);