summaryrefslogtreecommitdiff
path: root/src/dhcp/tests/test-dhcp-utils.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-09-28 14:51:14 +0200
committerThomas Haller <thaller@redhat.com>2017-10-06 11:13:43 +0200
commit5afdf6f1de76a6563914ae47eeddf51ea21de203 (patch)
tree3d65f79988b2f831267ab29d0660f720b7bc0e5b /src/dhcp/tests/test-dhcp-utils.c
parenta4e506ead5215ee736de9f53720a61aaf716a320 (diff)
downloadNetworkManager-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.c4
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;
}