summaryrefslogtreecommitdiff
path: root/src/nm-core-utils.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-10-13 11:51:18 +0200
committerThomas Haller <thaller@redhat.com>2017-10-13 12:47:55 +0200
commit4a2798434ef162b31a129cb6a857c950ec992f3e (patch)
tree38f6f0d3ca22657ae0bac1afa3c850f33516b001 /src/nm-core-utils.c
parentfb6fecc036f466f569a7d05ed0d499164e032f15 (diff)
downloadNetworkManager-4a2798434ef162b31a129cb6a857c950ec992f3e.tar.gz
core: introduce NM_HASH_INIT() to initialize hash seed
Introduce a NM_HASH_INIT() function. It makes the places where we initialize a hash with a certain seed visually clear. Also, move them from "shared/nm-utils/nm-shared-utils.h" to "shared/nm-utils/nm-macros-internal.h". We might want to have NM_HASH_INIT() non-inline (hence, define it in the source file).
Diffstat (limited to 'src/nm-core-utils.c')
-rw-r--r--src/nm-core-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nm-core-utils.c b/src/nm-core-utils.c
index 42bd47c1ba..48a4aa25db 100644
--- a/src/nm-core-utils.c
+++ b/src/nm-core-utils.c
@@ -188,7 +188,7 @@ nm_utils_exp10 (gint16 ex)
guint
nm_utils_in6_addr_hash (const struct in6_addr *addr)
{
- guint hash = (guint) 0x897da53981a13ULL;
+ guint hash = NM_HASH_INIT (3675559913u);
int i;
for (i = 0; i < sizeof (*addr); i++)