path/path.c: Changed PopLastSegment parameters order.
This commit is contained in:
parent
8da6e2df69
commit
0f5964ad3c
2 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@
|
|||
int SegmentsLength (char **s);
|
||||
void FreeSegments (char ***s);
|
||||
int IsJustAKey (char *p);
|
||||
int PopLastSegment (char *p, char **str);
|
||||
int PopLastSegment (char **str, char *p);
|
||||
char *PathFromSegments(char *prefix, char **seg);
|
||||
int ParseCidToPath (char *dst, char *txt);
|
||||
int ParsePath (char *dst, char *txt);
|
||||
|
|
|
@ -82,7 +82,7 @@ int IsJustAKey (char *p)
|
|||
// PopLastSegment returns a new Path without its final segment, and the final
|
||||
// segment, separately. If there is no more to pop (the path is just a key),
|
||||
// the original path is returned.
|
||||
int PopLastSegment (char *p, char **str)
|
||||
int PopLastSegment (char **str, char *p)
|
||||
{
|
||||
if (IsJustAKey(p)) return 0;
|
||||
*str = strrchr(p, '/');
|
||||
|
|
Loading…
Reference in a new issue