summaryrefslogtreecommitdiff
path: root/src/nm-route-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nm-route-manager.c')
-rw-r--r--src/nm-route-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nm-route-manager.c b/src/nm-route-manager.c
index 2d4c7d9595..95113f8c84 100644
--- a/src/nm-route-manager.c
+++ b/src/nm-route-manager.c
@@ -296,7 +296,7 @@ _route_index_find (const VTableIP *vtable, const RouteIndex *index, const NMPlat
{
gssize idx, idx2;
- idx = _nm_utils_ptrarray_find_binary_search ((gpointer *) index->entries, index->len, (gpointer) needle, (GCompareDataFunc) _vx_route_id_cmp_full, (gpointer) vtable);
+ idx = _nm_utils_ptrarray_find_binary_search ((gconstpointer *) index->entries, index->len, needle, (GCompareDataFunc) _vx_route_id_cmp_full, (gpointer) vtable);
if (idx < 0)
return idx;