freebsd-ports/databases/beansdb/files/patch-src__hstore.c
Xin LI d31630f551 Update to 0.6.0.
Submitted by:	KATO Tsuguru <tkato432 yahoo com>
2015-05-21 00:58:26 +00:00

19 lines
590 B
C

--- src/hstore.c.orig 2013-07-17 08:09:12 UTC
+++ src/hstore.c
@@ -45,14 +45,14 @@ struct t_hstore {
Bitcask* bitcasks[];
};
-inline int get_index(HStore *store, char *key)
+static inline int get_index(HStore *store, char *key)
{
if (store->height == 0) return 0;
uint32_t h = fnv1a(key, strlen(key));
return h >> ((8 - store->height) * 4);
}
-inline pthread_mutex_t* get_mutex(HStore *store, char *key)
+static inline pthread_mutex_t* get_mutex(HStore *store, char *key)
{
uint32_t i = fnv1a(key, strlen(key)) % NUM_OF_MUTEX;
return &store->locks[i];