summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2021-03-15 14:41:24 +0100
committerThomas Haller <thaller@redhat.com>2021-03-16 09:55:48 +0100
commitdccfe1df349fbf33e5c2e5bae70c5d6e812c5aae (patch)
treedd4730a3f227597c668ff2ffda56f4fd804cb9a8
parentb9d73cfb2db8de0d3c400e63fce68cc80c50a1d0 (diff)
downloadNetworkManager-dccfe1df349fbf33e5c2e5bae70c5d6e812c5aae.tar.gz
libnm: use nm_utils_strv_find_binary_search() in valid_s390_opts_check()
-rw-r--r--src/libnm-core-impl/nm-setting-wired.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/libnm-core-impl/nm-setting-wired.c b/src/libnm-core-impl/nm-setting-wired.c
index 834a4ec54c..f17fa6b7bd 100644
--- a/src/libnm-core-impl/nm-setting-wired.c
+++ b/src/libnm-core-impl/nm-setting-wired.c
@@ -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);
}