aboutsummaryrefslogtreecommitdiffstats
path: root/src/archive/plugins/Iso9660ArchivePlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-08 13:21:50 +0100
committerMax Kellermann <max@duempel.org>2014-02-08 13:25:44 +0100
commitfe7c6fee348a3263ce0c97a83547749725f681cb (patch)
tree9773e269458ed7847fa9d566a20dfdd6db89b59a /src/archive/plugins/Iso9660ArchivePlugin.cxx
parent9906daeca71b7e552721f85f3696d9e6a20f7a5b (diff)
downloadmpd-fe7c6fee348a3263ce0c97a83547749725f681cb.tar.gz
mpd-fe7c6fee348a3263ce0c97a83547749725f681cb.tar.xz
mpd-fe7c6fee348a3263ce0c97a83547749725f681cb.zip
ArchivePlugin: pass Path to open()
Diffstat (limited to 'src/archive/plugins/Iso9660ArchivePlugin.cxx')
-rw-r--r--src/archive/plugins/Iso9660ArchivePlugin.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/archive/plugins/Iso9660ArchivePlugin.cxx b/src/archive/plugins/Iso9660ArchivePlugin.cxx
index d84cbc2cd..f2f91e9f6 100644
--- a/src/archive/plugins/Iso9660ArchivePlugin.cxx
+++ b/src/archive/plugins/Iso9660ArchivePlugin.cxx
@@ -28,6 +28,7 @@
#include "../ArchiveVisitor.hxx"
#include "input/InputStream.hxx"
#include "input/InputPlugin.hxx"
+#include "fs/Path.hxx"
#include "util/RefCount.hxx"
#include "util/Error.hxx"
#include "util/Domain.hxx"
@@ -117,13 +118,14 @@ Iso9660ArchiveFile::Visit(const char *psz_path, ArchiveVisitor &visitor)
}
static ArchiveFile *
-iso9660_archive_open(const char *pathname, Error &error)
+iso9660_archive_open(Path pathname, Error &error)
{
/* open archive */
- auto iso = iso9660_open(pathname);
+ auto iso = iso9660_open(pathname.c_str());
if (iso == nullptr) {
error.Format(iso9660_domain,
- "Failed to open ISO9660 file %s", pathname);
+ "Failed to open ISO9660 file %s",
+ pathname.c_str());
return nullptr;
}