summaryrefslogtreecommitdiff
path: root/apps/open_plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/open_plugin.h')
-rw-r--r--apps/open_plugin.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/open_plugin.h b/apps/open_plugin.h
index adfb9a75bc..d16be2052c 100644
--- a/apps/open_plugin.h
+++ b/apps/open_plugin.h
@@ -67,11 +67,12 @@ struct open_plugin_entry_t
67 offsetof(struct open_plugin_entry_t, path) + \ 67 offsetof(struct open_plugin_entry_t, path) + \
68 offsetof(struct open_plugin_entry_t, param)) 68 offsetof(struct open_plugin_entry_t, param))
69 69
70#define OPEN_PLUGIN_SEED 0x811C9DC5; //seed, 2166136261;
70inline static void open_plugin_get_hash(const char *key, uint32_t *hash) 71inline static void open_plugin_get_hash(const char *key, uint32_t *hash)
71{ 72{
72 /* Calculate modified FNV1a hash of string */ 73 /* Calculate modified FNV1a hash of string */
73 const uint32_t p = 16777619; 74 const uint32_t p = 16777619;
74 *hash = 0x811C9DC5; //seed, 2166136261; 75 *hash = OPEN_PLUGIN_SEED;
75 while(*key) 76 while(*key)
76 *hash = (*key++ ^ *hash) * p; 77 *hash = (*key++ ^ *hash) * p;
77} 78}