From 380ecbc2340ecadd621740e47226c20f0245cff1 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 25 Mar 2020 14:03:01 +0100 Subject: [PATCH] dispatcher: use nm_str_hash() for hash table in dispatcher nm_str_hash() uses siphash24. We want to use that everywhere. The only concern would be that it is slower. But if that's the concern, then we would have many more performance critical places to care about first. --- dispatcher/nm-dispatcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dispatcher/nm-dispatcher.c b/dispatcher/nm-dispatcher.c index 7cd9d5532d..27647c1b64 100644 --- a/dispatcher/nm-dispatcher.c +++ b/dispatcher/nm-dispatcher.c @@ -598,7 +598,7 @@ find_scripts (Request *request) else subdir = NULL; - scripts = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free); + scripts = g_hash_table_new_full (nm_str_hash, g_str_equal, g_free, g_free); _find_scripts (request, scripts, NMLIBDIR, subdir); _find_scripts (request, scripts, NMCONFDIR, subdir);