diff options
author | Thomas Haller <thaller@redhat.com> | 2017-09-28 14:51:14 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-10-06 11:13:43 +0200 |
commit | 5afdf6f1de76a6563914ae47eeddf51ea21de203 (patch) | |
tree | 3d65f79988b2f831267ab29d0660f720b7bc0e5b /src/dhcp/tests/test-dhcp-utils.c | |
parent | a4e506ead5215ee736de9f53720a61aaf716a320 (diff) | |
download | NetworkManager-5afdf6f1de76a6563914ae47eeddf51ea21de203.tar.gz |
dhcp/trivial: rename "priority" variables to "route_metric" in DHCP code
The name "priority" is well established for routes (e.g. kernel's
RTA_PRIORITY netlink attribute).
However, we call it at most places "metric" or "route_metric".
Rename it, not to use two different names for the same thing.
Diffstat (limited to 'src/dhcp/tests/test-dhcp-utils.c')
-rw-r--r-- | src/dhcp/tests/test-dhcp-utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dhcp/tests/test-dhcp-utils.c b/src/dhcp/tests/test-dhcp-utils.c index a03c684fa2..907fb5d892 100644 --- a/src/dhcp/tests/test-dhcp-utils.c +++ b/src/dhcp/tests/test-dhcp-utils.c @@ -35,12 +35,12 @@ static NMIP4Config * _ip4_config_from_options (int ifindex, const char *iface, GHashTable *options, - guint32 priority) + guint32 route_metric) { nm_auto_unref_dedup_multi_index NMDedupMultiIndex *multi_idx = nm_dedup_multi_index_new (); NMIP4Config *config; - config = nm_dhcp_utils_ip4_config_from_options (multi_idx, ifindex, iface, options, priority); + config = nm_dhcp_utils_ip4_config_from_options (multi_idx, ifindex, iface, options, route_metric); g_assert (config); return config; } |