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.
This commit is contained in:
Thomas Haller 2020-03-25 14:03:01 +01:00
parent a34b1f793e
commit 380ecbc234

View file

@ -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);