mirror of
https://github.com/curl/curl.git
synced 2026-08-25 01:03:31 +03:00
checksrc: make sure sizeof() is used *with* parentheses
... and unify the source code to adhere. Closes #2563
This commit is contained in:
parent
f3d836b736
commit
cb529b713f
25 changed files with 77 additions and 64 deletions
|
|
@ -345,7 +345,7 @@ const char *Curl_http2_strerror(uint32_t err)
|
|||
"INADEQUATE_SECURITY", /* 0xC */
|
||||
"HTTP_1_1_REQUIRED" /* 0xD */
|
||||
};
|
||||
return (err < sizeof str / sizeof str[0]) ? str[err] : "unknown";
|
||||
return (err < sizeof(str) / sizeof(str[0])) ? str[err] : "unknown";
|
||||
#else
|
||||
return nghttp2_http2_strerror(err);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue