diff --git a/src/archive/ArchiveLookup.cxx b/src/archive/ArchiveLookup.cxx index d80dfa426..24643b644 100644 --- a/src/archive/ArchiveLookup.cxx +++ b/src/archive/ArchiveLookup.cxx @@ -24,8 +24,8 @@ #include gcc_pure -static char * -FindSlash(char *p, size_t i) noexcept +static PathTraitsFS::pointer_type +FindSlash(PathTraitsFS::pointer_type p, size_t i) noexcept { for (; i > 0; --i) if (p[i] == '/') @@ -35,11 +35,11 @@ FindSlash(char *p, size_t i) noexcept } ArchiveLookupResult -archive_lookup(char *pathname) +archive_lookup(PathTraitsFS::pointer_type pathname) { size_t idx = strlen(pathname); - char *slash = nullptr; + PathTraitsFS::pointer_type slash = nullptr; while (true) { try { diff --git a/src/archive/ArchiveLookup.hxx b/src/archive/ArchiveLookup.hxx index 0bc221ed5..119c28faa 100644 --- a/src/archive/ArchiveLookup.hxx +++ b/src/archive/ArchiveLookup.hxx @@ -50,7 +50,7 @@ struct ArchiveLookupResult { * Throws on error. */ ArchiveLookupResult -archive_lookup(char *pathname); +archive_lookup(PathTraitsFS::pointer_type pathname); #endif