Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
9f246fc0
Commit
9f246fc0
authored
Jun 11, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
archive/Lookup: use PathTraitsFS::pointer_type
parent
7de6e4db
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
ArchiveLookup.cxx
src/archive/ArchiveLookup.cxx
+4
-4
ArchiveLookup.hxx
src/archive/ArchiveLookup.hxx
+1
-1
No files found.
src/archive/ArchiveLookup.cxx
View file @
9f246fc0
...
...
@@ -24,8 +24,8 @@
#include <string.h>
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
{
...
...
src/archive/ArchiveLookup.hxx
View file @
9f246fc0
...
...
@@ -50,7 +50,7 @@ struct ArchiveLookupResult {
* Throws on error.
*/
ArchiveLookupResult
archive_lookup
(
char
*
pathname
);
archive_lookup
(
PathTraitsFS
::
pointer_type
pathname
);
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment