libluna/CPath: Replace size_t with usize
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0c07e66c4f
commit
30deed2820
@ -7,7 +7,7 @@ char* basename(char* path)
|
|||||||
{
|
{
|
||||||
// If path is NULL, or the string's length is 0, return .
|
// If path is NULL, or the string's length is 0, return .
|
||||||
if (!path) return dot;
|
if (!path) return dot;
|
||||||
size_t len = strlen(path);
|
usize len = strlen(path);
|
||||||
if (!len) return dot;
|
if (!len) return dot;
|
||||||
|
|
||||||
// Strip trailing slashes.
|
// Strip trailing slashes.
|
||||||
@ -27,7 +27,7 @@ char* dirname(char* path)
|
|||||||
{
|
{
|
||||||
// If path is NULL, or the string's length is 0, return .
|
// If path is NULL, or the string's length is 0, return .
|
||||||
if (!path) return dot;
|
if (!path) return dot;
|
||||||
size_t len = strlen(path);
|
usize len = strlen(path);
|
||||||
if (!len) return dot;
|
if (!len) return dot;
|
||||||
|
|
||||||
// Strip trailing slashes.
|
// Strip trailing slashes.
|
||||||
|
Loading…
Reference in New Issue
Block a user