summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2021-04-06 09:59:42 +0200
committerThomas Haller <thaller@redhat.com>2021-04-07 07:57:35 +0200
commit6d2a60b99cc836f9cd89a9cfd22b28b744fe86cb (patch)
tree8871175849b19f2340bc55c0f48ae67d4dbe9202
parent44fbff63fc0d4b76b21e8922912afb70ed944c34 (diff)
downloadNetworkManager-6d2a60b99cc836f9cd89a9cfd22b28b744fe86cb.tar.gz
dns: use C99 static array indexes in function parameters for compute_hash()
-rw-r--r--src/core/dns/nm-dns-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/dns/nm-dns-manager.c b/src/core/dns/nm-dns-manager.c
index 9854cb60fb..54de1e28e0 100644
--- a/src/core/dns/nm-dns-manager.c
+++ b/src/core/dns/nm-dns-manager.c
@@ -1107,7 +1107,7 @@ update_resolv_conf(NMDnsManager * self,
}
static void
-compute_hash(NMDnsManager *self, const NMGlobalDnsConfig *global, guint8 buffer[HASH_LEN])
+compute_hash(NMDnsManager *self, const NMGlobalDnsConfig *global, guint8 buffer[static HASH_LEN])
{
nm_auto_free_checksum GChecksum *sum = NULL;
NMDnsConfigIPData * ip_data;