From a14a6881538229cd938282bd56c7f0d12a089be6 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Wed, 30 May 2018 12:32:31 +0300 Subject: Drop debugging hooks The hooks were introduced as a temporary tool in de7834e9. They did their job and are not necessary any more. --- src/gdbmopen.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/gdbmopen.c') diff --git a/src/gdbmopen.c b/src/gdbmopen.c index 9c10d3d..22e7ca6 100644 --- a/src/gdbmopen.c +++ b/src/gdbmopen.c @@ -634,8 +634,7 @@ _gdbm_init_cache (GDBM_FILE dbf, size_t size) if (dbf->bucket_cache == NULL) { - dbf->bucket_cache = GDBM_DEBUG_ALLOC ("_gdbm_init_cache:malloc-failure", - calloc (size, sizeof(cache_elem))); + dbf->bucket_cache = calloc (size, sizeof(cache_elem)); if (dbf->bucket_cache == NULL) { GDBM_SET_ERRNO (dbf, GDBM_MALLOC_ERROR, TRUE); @@ -645,9 +644,8 @@ _gdbm_init_cache (GDBM_FILE dbf, size_t size) for (index = 0; index < size; index++) { - (dbf->bucket_cache[index]).ca_bucket = - GDBM_DEBUG_ALLOC ("_gdbm_init_cache:bucket-malloc-failure", - malloc (dbf->header->bucket_size)); + (dbf->bucket_cache[index]).ca_bucket = + malloc (dbf->header->bucket_size); if ((dbf->bucket_cache[index]).ca_bucket == NULL) { GDBM_SET_ERRNO (dbf, GDBM_MALLOC_ERROR, TRUE); -- cgit v1.2.1