Commit 9f246fc0 authored by Max Kellermann's avatar Max Kellermann

archive/Lookup: use PathTraitsFS::pointer_type

parent 7de6e4db
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
#include <string.h> #include <string.h>
gcc_pure gcc_pure
static char * static PathTraitsFS::pointer_type
FindSlash(char *p, size_t i) noexcept FindSlash(PathTraitsFS::pointer_type p, size_t i) noexcept
{ {
for (; i > 0; --i) for (; i > 0; --i)
if (p[i] == '/') if (p[i] == '/')
...@@ -35,11 +35,11 @@ FindSlash(char *p, size_t i) noexcept ...@@ -35,11 +35,11 @@ FindSlash(char *p, size_t i) noexcept
} }
ArchiveLookupResult ArchiveLookupResult
archive_lookup(char *pathname) archive_lookup(PathTraitsFS::pointer_type pathname)
{ {
size_t idx = strlen(pathname); size_t idx = strlen(pathname);
char *slash = nullptr; PathTraitsFS::pointer_type slash = nullptr;
while (true) { while (true) {
try { try {
......
...@@ -50,7 +50,7 @@ struct ArchiveLookupResult { ...@@ -50,7 +50,7 @@ struct ArchiveLookupResult {
* Throws on error. * Throws on error.
*/ */
ArchiveLookupResult ArchiveLookupResult
archive_lookup(char *pathname); archive_lookup(PathTraitsFS::pointer_type pathname);
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment