commit - 8331683470d6461305fa990d167c7f9b3be031e2
commit + 7c7a66bd979832cee8429180b46a5179e2cd8b66
blob - 784397cd14eacc033b6e0712e6c81b361e5ee692
blob + 16f629811337c133372a652aad01160ea223d25a
--- lib/delta_cache.c
+++ lib/delta_cache.c
cache = calloc(1, sizeof(*cache));
if (cache == NULL)
return got_error_from_errno("calloc");
-
+
cache->buckets = calloc(GOT_DELTA_CACHE_MIN_BUCKETS,
sizeof(cache->buckets[0]));
if (cache->buckets == NULL) {
return SipHash24(&cache->key, &delta_offset, sizeof(delta_offset));
}
+#ifndef GOT_NO_OBJ_CACHE
static const struct got_error *
delta_cache_resize(struct got_delta_cache *cache, unsigned int nbuckets)
{
return delta_cache_resize(cache, nbuckets);
}
+#endif
const struct got_error *
got_delta_cache_add(struct got_delta_cache *cache,