mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 11:40:08 +01: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
|
||||
&& (nm_utils_array_find_binary_search(valid_s390_opts,
|
||||
sizeof(const char *),
|
||||
G_N_ELEMENTS(valid_s390_opts) - 1,
|
||||
&option,
|
||||
nm_strcmp_p_with_data,
|
||||
NULL)
|
||||
&& (nm_utils_strv_find_binary_search(valid_s390_opts,
|
||||
G_N_ELEMENTS(valid_s390_opts) - 1,
|
||||
option)
|
||||
>= 0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue