mirror of
https://github.com/curl/curl.git
synced 2026-07-27 20:33:05 +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
|
|
@ -4456,7 +4456,7 @@ static struct name_const H2_NON_FIELD[] = {
|
|||
static bool h2_non_field(const char *name, size_t namelen)
|
||||
{
|
||||
size_t i;
|
||||
for(i = 0; i < sizeof(H2_NON_FIELD)/sizeof(H2_NON_FIELD[0]); ++i) {
|
||||
for(i = 0; i < CURL_ARRAYSIZE(H2_NON_FIELD); ++i) {
|
||||
if(namelen < H2_NON_FIELD[i].namelen)
|
||||
return FALSE;
|
||||
if(namelen == H2_NON_FIELD[i].namelen &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue