summaryrefslogtreecommitdiff
path: root/src/dns/nm-dns-unbound.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-06-14 11:04:38 +0200
committerThomas Haller <thaller@redhat.com>2017-06-19 15:12:49 +0200
commit19a98c6f617c2c9d550f6954f34b3e25e3ae6d63 (patch)
tree18c4a575088570d233bedf96a699a0223ea4bca0 /src/dns/nm-dns-unbound.c
parent70792e51d94a5e7790b3e65b7d6cf591b251f4cd (diff)
downloadNetworkManager-19a98c6f617c2c9d550f6954f34b3e25e3ae6d63.tar.gz
dns: don't clone DNS configs list for nm_dns_plugin_update()
No need to clone the list anymore. Unfortunately, GPtrArray is not NULL terminated (without extra effort), so we have to pass on the GPtrArray instance for the length.
Diffstat (limited to 'src/dns/nm-dns-unbound.c')
-rw-r--r--src/dns/nm-dns-unbound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dns/nm-dns-unbound.c b/src/dns/nm-dns-unbound.c
index 7369505ec9..0b80055f1b 100644
--- a/src/dns/nm-dns-unbound.c
+++ b/src/dns/nm-dns-unbound.c
@@ -39,7 +39,7 @@ G_DEFINE_TYPE (NMDnsUnbound, nm_dns_unbound, NM_TYPE_DNS_PLUGIN)
static gboolean
update (NMDnsPlugin *plugin,
- const NMDnsIPConfigData *const*configs,
+ const GPtrArray *configs,
const NMGlobalDnsConfig *global_config,
const char *hostname)
{