mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 11:19:16 +02:00
libnm: use nm_utils_strv_find_binary_search() in valid_s390_opts_check()
This commit is contained in:
parent
b9d73cfb2d
commit
dccfe1df34
1 changed files with 3 additions and 6 deletions
|
|
@ -129,12 +129,9 @@ valid_s390_opts_check(const char *option)
|
||||||
}
|
}
|
||||||
|
|
||||||
return option
|
return option
|
||||||
&& (nm_utils_array_find_binary_search(valid_s390_opts,
|
&& (nm_utils_strv_find_binary_search(valid_s390_opts,
|
||||||
sizeof(const char *),
|
G_N_ELEMENTS(valid_s390_opts) - 1,
|
||||||
G_N_ELEMENTS(valid_s390_opts) - 1,
|
option)
|
||||||
&option,
|
|
||||||
nm_strcmp_p_with_data,
|
|
||||||
NULL)
|
|
||||||
>= 0);
|
>= 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue