diff options
author | Thomas Haller <thaller@redhat.com> | 2017-06-14 11:04:38 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-06-19 15:12:49 +0200 |
commit | 19a98c6f617c2c9d550f6954f34b3e25e3ae6d63 (patch) | |
tree | 18c4a575088570d233bedf96a699a0223ea4bca0 /src/dns/nm-dns-unbound.c | |
parent | 70792e51d94a5e7790b3e65b7d6cf591b251f4cd (diff) | |
download | NetworkManager-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.c | 2 |
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) { |