diff options
author | Luis Pabon <lpabon@redhat.com> | 2014-03-16 23:07:19 -0400 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2014-03-17 11:12:08 -0700 |
commit | 6224e878cdf780360b49760c4b0c20584bbc0b6f (patch) | |
tree | 5761caff2cfd23e8ae5f2f44215a7fe2c371ae2c /libglusterfs/src/mem-pool.c | |
parent | 9565ac3328dc91bd721a65b6d4e7957929e9ed59 (diff) |
build: Remove cmockery2 from repo
While we wait for cmockery2 to be available from Fedora,
we can remove cmockery2 from the repo.
BUG: 1077011
Change-Id: I75d462c607cd376a5d838ea83f4d12eb59757e73
Signed-off-by: Luis Pabon <lpabon@redhat.com>
Reviewed-on: http://review.gluster.org/7281
Reviewed-by: Justin Clift <justin@gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Harshavardhana <harsha@harshavardhana.net>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'libglusterfs/src/mem-pool.c')
-rw-r--r-- | libglusterfs/src/mem-pool.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/libglusterfs/src/mem-pool.c b/libglusterfs/src/mem-pool.c index 96e04910513..b92803d4d3d 100644 --- a/libglusterfs/src/mem-pool.c +++ b/libglusterfs/src/mem-pool.c @@ -24,24 +24,17 @@ #define GLUSTERFS_ENV_MEM_ACCT_STR "GLUSTERFS_DISABLE_MEM_ACCT" -#include <cmockery/pbc.h> -#include <cmockery/cmockery_override.h> - void gf_mem_acct_enable_set (void *data) { glusterfs_ctx_t *ctx = NULL; - REQUIRE(data != NULL); - ctx = data; GF_ASSERT (ctx != NULL); ctx->mem_acct_enable = 1; - ENSURE(1 == ctx->mem_acct_enable); - return; } @@ -156,8 +149,6 @@ __gf_realloc (void *ptr, size_t size) if (!THIS->ctx->mem_acct_enable) return REALLOC (ptr, size); - REQUIRE(NULL != ptr); - tot_size = size + GF_MEM_HEADER_SIZE + GF_MEM_TRAILER_SIZE; orig_ptr = (char *)ptr - 8 - 4; |