mirror of
https://github.com/curl/curl.git
synced 2026-08-02 16:20:28 +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
|
|
@ -793,7 +793,7 @@ ParameterError str2tls_max(long *val, const char *str)
|
|||
size_t i = 0;
|
||||
if(!str)
|
||||
return PARAM_REQUIRES_PARAMETER;
|
||||
for(i = 0; i < sizeof(tls_max_array)/sizeof(tls_max_array[0]); i++) {
|
||||
for(i = 0; i < CURL_ARRAYSIZE(tls_max_array); i++) {
|
||||
if(!strcmp(str, tls_max_array[i].tls_max_str)) {
|
||||
*val = tls_max_array[i].tls_max;
|
||||
return PARAM_OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue