commit - 6e1c41adc8ee3e9afc984ed4ba5376531c4fa980
commit + 20282b029acc164f2067a9ab57fb8ab9a931d25c
blob - ff7846b72bb4720eb8172eb46ef4b51f21df7f7c
blob + 3e84b2cb0fa7e3e391401f0f6fe2dc4747a01222
--- 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,