diff options
author | Vojtech Bubela <vbubela@redhat.com> | 2021-09-13 15:57:51 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2021-09-13 16:56:54 +0200 |
commit | 195bef5baefb862dc87f3ceac7831555d03ffb06 (patch) | |
tree | 38b19dec41d07e8279d44478aa6f548cde995811 | |
parent | 4257cc1bee1d22c65cbedaa891a50ae149f45704 (diff) | |
download | NetworkManager-195bef5baefb862dc87f3ceac7831555d03ffb06.tar.gz |
core: fix typo in function name nmp_object_ip_route_is_best_default_route()
-rw-r--r-- | src/core/nm-ip4-config.c | 4 | ||||
-rw-r--r-- | src/core/nm-l3-config-data.c | 4 | ||||
-rw-r--r-- | src/libnm-platform/nmp-object.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/core/nm-ip4-config.c b/src/core/nm-ip4-config.c index 1a31caeaa3..a622b05379 100644 --- a/src/core/nm-ip4-config.c +++ b/src/core/nm-ip4-config.c @@ -408,11 +408,11 @@ _nm_ip_config_best_default_route_find_better(const NMPObject *obj_cur, const NMP NMP_OBJECT_TYPE_IP4_ROUTE, NMP_OBJECT_TYPE_IP6_ROUTE)) || NMP_OBJECT_GET_TYPE(obj_cur) == NMP_OBJECT_GET_TYPE(obj_cmp)); - nm_assert(!obj_cur || nmp_object_ip_route_is_best_defaut_route(obj_cur)); + nm_assert(!obj_cur || nmp_object_ip_route_is_best_default_route(obj_cur)); /* assumes that @obj_cur is already the best default route (or NULL). It checks whether * @obj_cmp is also a default route and returns the best of both. */ - if (obj_cmp && nmp_object_ip_route_is_best_defaut_route(obj_cmp)) { + if (obj_cmp && nmp_object_ip_route_is_best_default_route(obj_cmp)) { guint32 metric_cur, metric_cmp; if (!obj_cur) diff --git a/src/core/nm-l3-config-data.c b/src/core/nm-l3-config-data.c index 6b2a8e7009..8c3c4f1b4c 100644 --- a/src/core/nm-l3-config-data.c +++ b/src/core/nm-l3-config-data.c @@ -1184,11 +1184,11 @@ _l3_config_best_default_route_find_better(const NMPObject *obj_cur, const NMPObj NMP_OBJECT_TYPE_IP4_ROUTE, NMP_OBJECT_TYPE_IP6_ROUTE)) || NMP_OBJECT_GET_TYPE(obj_cur) == NMP_OBJECT_GET_TYPE(obj_cmp)); - nm_assert(!obj_cur || nmp_object_ip_route_is_best_defaut_route(obj_cur)); + nm_assert(!obj_cur || nmp_object_ip_route_is_best_default_route(obj_cur)); /* assumes that @obj_cur is already the best default route (or NULL). It checks whether * @obj_cmp is also a default route and returns the best of both. */ - if (obj_cmp && nmp_object_ip_route_is_best_defaut_route(obj_cmp)) { + if (obj_cmp && nmp_object_ip_route_is_best_default_route(obj_cmp)) { guint32 metric_cur, metric_cmp; if (!obj_cur) diff --git a/src/libnm-platform/nmp-object.h b/src/libnm-platform/nmp-object.h index 6d9060cba4..8ba3d408ad 100644 --- a/src/libnm-platform/nmp-object.h +++ b/src/libnm-platform/nmp-object.h @@ -1106,7 +1106,7 @@ nmp_object_link_get_ifname(const NMPObject *obj) } static inline gboolean -nmp_object_ip_route_is_best_defaut_route(const NMPObject *obj) +nmp_object_ip_route_is_best_default_route(const NMPObject *obj) { const NMPlatformIPRoute *r = NMP_OBJECT_CAST_IP_ROUTE(obj); |