summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libnm-core/tests/test-general.c4
-rw-r--r--shared/nm-glib-aux/tests/test-shared-general.c2
-rw-r--r--src/devices/nm-device-bond.c2
-rw-r--r--src/devices/wifi/nm-wifi-p2p-peer.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/libnm-core/tests/test-general.c b/libnm-core/tests/test-general.c
index 372485cccf..5ab1922044 100644
--- a/libnm-core/tests/test-general.c
+++ b/libnm-core/tests/test-general.c
@@ -330,7 +330,7 @@ _do_test_nm_utils_strsplit_set_f_one(NMUtilsStrsplitSetFlags flags,
}
g_assert(words_g[words_len] == NULL);
g_assert_cmpint(NM_PTRARRAY_LEN(words_g), ==, words_len);
- g_assert(nm_utils_strv_cmp_n(exp_words, words_len, NM_CAST_STRV_CC(words_g), -1) == 0);
+ g_assert(nm_utils_strv_cmp_n(exp_words, words_len, words_g, -1) == 0);
}
}
@@ -10058,7 +10058,7 @@ _strsplit_quoted_assert_strv(const char * topic,
g_assert(strv1);
g_assert(strv2);
- if (nm_utils_strv_equal((char **) strv1, (char **) strv2))
+ if (nm_utils_strv_equal(strv1, strv2))
return;
for (i = 0; strv1[i]; i++) {
diff --git a/shared/nm-glib-aux/tests/test-shared-general.c b/shared/nm-glib-aux/tests/test-shared-general.c
index 7c1bdb7bab..dbb8ed275e 100644
--- a/shared/nm-glib-aux/tests/test-shared-general.c
+++ b/shared/nm-glib-aux/tests/test-shared-general.c
@@ -1051,7 +1051,7 @@ test_strv_dup_packed(void)
g_assert(strv_cpy);
g_assert(NM_PTRARRAY_LEN(strv_cpy) == strv_len);
if (strv_cpy)
- g_assert(nm_utils_strv_equal((char **) strv_cpy, (char **) strv_src));
+ g_assert(nm_utils_strv_equal(strv_cpy, strv_src));
}
}
diff --git a/src/devices/nm-device-bond.c b/src/devices/nm-device-bond.c
index 68e210b736..a54c9b47c4 100644
--- a/src/devices/nm-device-bond.c
+++ b/src/devices/nm-device-bond.c
@@ -264,7 +264,7 @@ set_arp_targets(NMDevice *device, const char *cur_arp_ip_target, const char *new
if (cur_len == 0 && new_len == 0)
return;
- if (nm_utils_strv_equal((char **) cur_strv, (char **) new_strv))
+ if (nm_utils_strv_equal(cur_strv, new_strv))
return;
for (i = 0; i < cur_len; i++)
diff --git a/src/devices/wifi/nm-wifi-p2p-peer.c b/src/devices/wifi/nm-wifi-p2p-peer.c
index c03b1b197a..cfcf96ab90 100644
--- a/src/devices/wifi/nm-wifi-p2p-peer.c
+++ b/src/devices/wifi/nm-wifi-p2p-peer.c
@@ -407,7 +407,7 @@ nm_wifi_p2p_peer_update_from_properties(NMWifiP2PPeer *peer, const NMSupplicantP
/* We currently only use the groups information internally to check if
* the peer is still joined. */
- if (!nm_utils_strv_equal((char **) priv->groups, (char **) peer_info->groups)) {
+ if (!nm_utils_strv_equal(priv->groups, peer_info->groups)) {
g_free(priv->groups);
priv->groups = nm_utils_strv_dup_packed(peer_info->groups, -1);
changed |= TRUE;