mirror of
https://github.com/curl/curl.git
synced 2026-08-26 21:24:08 +03:00
tidy-up: use CURL_ARRAYSIZE()
Follow-up to 13b2ea68f0 #16111
Closes #16381
This commit is contained in:
parent
1b710381ca
commit
3fd1dfc829
35 changed files with 52 additions and 64 deletions
|
|
@ -77,7 +77,7 @@ UNITTEST_START
|
|||
{ "/.", "/" },
|
||||
};
|
||||
|
||||
for(i = 0; i < sizeof(pairs)/sizeof(pairs[0]); i++) {
|
||||
for(i = 0; i < CURL_ARRAYSIZE(pairs); i++) {
|
||||
char *out;
|
||||
int err = dedotdotify(pairs[i].input, strlen(pairs[i].input), &out);
|
||||
abort_unless(err == 0, "returned error");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue