From fc223452e836799ea88e5eefc538e29fba045ddb Mon Sep 17 00:00:00 2001 From: Thomas Arp <357770+welcor@users.noreply.github.com> Date: Sat, 7 Mar 2020 23:24:32 +0100 Subject: [PATCH] Fix typo in previous commit. Also, inline lookup functions if possible. --- src/dg_scripts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dg_scripts.c b/src/dg_scripts.c index 2cf4539..978cf6d 100644 --- a/src/dg_scripts.c +++ b/src/dg_scripts.c @@ -2994,13 +2994,13 @@ void init_lookup_table(void) } } -static struct lookup_table_t *get_bucket_head(long uid) +static inline struct lookup_table_t *get_bucket_head(long uid) { int bucket = (int) (uid & (BUCKET_COUNT - 1)); return &lookup_table[bucket]; } -static struct lookup_table_t *find_element_by_uid_in_lookup_table(long uid) +static inline struct lookup_table_t *find_element_by_uid_in_lookup_table(long uid) { struct lookup_table_t *lt = get_bucket_head(uid);