mirror of
https://github.com/curl/curl.git
synced 2026-08-26 01:43:37 +03:00
lib: fix formatting nits (part 2)
From `lib/curl*` to `lib/g*`. With fixes to part 1.
part 1: 47a1ab2ebe #19764
Closes #19800
This commit is contained in:
parent
3e2a946926
commit
86b346443b
56 changed files with 976 additions and 1088 deletions
|
|
@ -62,10 +62,10 @@ static char *dirslash(const char *path)
|
|||
n = strlen(path);
|
||||
if(n) {
|
||||
/* find the rightmost path separator, if any */
|
||||
while(n && !IS_SEP(path[n-1]))
|
||||
while(n && !IS_SEP(path[n - 1]))
|
||||
--n;
|
||||
/* skip over all the path separators, if any */
|
||||
while(n && IS_SEP(path[n-1]))
|
||||
while(n && IS_SEP(path[n - 1]))
|
||||
--n;
|
||||
}
|
||||
if(curlx_dyn_addn(&out, path, n))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue