summaryrefslogtreecommitdiff
path: root/src/dns
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-12-19 12:34:20 +0100
committerThomas Haller <thaller@redhat.com>2018-01-09 14:24:54 +0100
commitfc40d91b97a1e84ea72536d0dde89f4f479c8e97 (patch)
treed41ba0f5c4d0a833c5799479cc9cc52a14eb62d6 /src/dns
parentb0f1a54c9bf0d4132a1e3f4b073be8d1d3387dde (diff)
downloadNetworkManager-fc40d91b97a1e84ea72536d0dde89f4f479c8e97.tar.gz
core/trivial: rename local variable in merge_one_ip_config()
Next commit will unify naming of variables, do a trivial rename first to make the diff smaller.
Diffstat (limited to 'src/dns')
-rw-r--r--src/dns/nm-dns-manager.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/dns/nm-dns-manager.c b/src/dns/nm-dns-manager.c
index 889936f4b2..87ae09ab3f 100644
--- a/src/dns/nm-dns-manager.c
+++ b/src/dns/nm-dns-manager.c
@@ -313,7 +313,7 @@ add_dns_option_item (GPtrArray *array, const char *str)
static void
merge_one_ip_config (NMResolvConfData *rc,
- const NMIPConfig *config,
+ const NMIPConfig *ip_config,
const char *iface)
{
int addr_family;
@@ -321,15 +321,15 @@ merge_one_ip_config (NMResolvConfData *rc,
char buf[NM_UTILS_INET_ADDRSTRLEN + 50];
const char *str;
- addr_family = nm_ip_config_get_addr_family (config);
+ addr_family = nm_ip_config_get_addr_family (ip_config);
nm_assert_addr_family (addr_family);
- num = nm_ip_config_get_num_nameservers (config);
+ num = nm_ip_config_get_num_nameservers (ip_config);
for (i = 0; i < num; i++) {
const NMIPAddr *addr;
- addr = nm_ip_config_get_nameserver (config, i);
+ addr = nm_ip_config_get_nameserver (ip_config, i);
if (addr_family == AF_INET)
nm_utils_inet_ntop (addr_family, addr, buf);
else if (IN6_IS_ADDR_V4MAPPED (addr))
@@ -345,41 +345,41 @@ merge_one_ip_config (NMResolvConfData *rc,
add_string_item (rc->nameservers, buf);
}
- num_domains = nm_ip_config_get_num_domains (config);
- num_searches = nm_ip_config_get_num_searches (config);
+ num_domains = nm_ip_config_get_num_domains (ip_config);
+ num_searches = nm_ip_config_get_num_searches (ip_config);
for (i = 0; i < num_searches; i++) {
- str = nm_ip_config_get_search (config, i);
+ str = nm_ip_config_get_search (ip_config, i);
if (domain_is_valid (str, FALSE))
add_string_item (rc->searches, str);
}
if (num_domains > 1 || !num_searches) {
for (i = 0; i < num_domains; i++) {
- str = nm_ip_config_get_domain (config, i);
+ str = nm_ip_config_get_domain (ip_config, i);
if (domain_is_valid (str, FALSE))
add_string_item (rc->searches, str);
}
}
- num = nm_ip_config_get_num_dns_options (config);
+ num = nm_ip_config_get_num_dns_options (ip_config);
for (i = 0; i < num; i++) {
add_dns_option_item (rc->options,
- nm_ip_config_get_dns_option (config, i));
+ nm_ip_config_get_dns_option (ip_config, i));
}
if (addr_family == AF_INET) {
- const NMIP4Config *config4 = (const NMIP4Config *) config;
+ const NMIP4Config *ip4_config = (const NMIP4Config *) ip_config;
/* NIS stuff */
- num = nm_ip4_config_get_num_nis_servers (config4);
+ num = nm_ip4_config_get_num_nis_servers (ip4_config);
for (i = 0; i < num; i++) {
add_string_item (rc->nis_servers,
- nm_utils_inet4_ntop (nm_ip4_config_get_nis_server (config4, i), buf));
+ nm_utils_inet4_ntop (nm_ip4_config_get_nis_server (ip4_config, i), buf));
}
- if (nm_ip4_config_get_nis_domain (config4)) {
+ if (nm_ip4_config_get_nis_domain (ip4_config)) {
/* FIXME: handle multiple domains */
if (!rc->nis_domain)
- rc->nis_domain = nm_ip4_config_get_nis_domain (config4);
+ rc->nis_domain = nm_ip4_config_get_nis_domain (ip4_config);
}
}
}