X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fsl_malloc.c;h=17c9207c8f200e092530c7140edc324214595d48;hb=51c5916149f3652345905f21a6c79dd23ab32fb0;hp=5b591e9eda2db575301340798765498a9fa2a804;hpb=c789d494c40b3816dcbd4929d720eb4248dee4da;p=openldap diff --git a/servers/slapd/sl_malloc.c b/servers/slapd/sl_malloc.c index 5b591e9eda..17c9207c8f 100644 --- a/servers/slapd/sl_malloc.c +++ b/servers/slapd/sl_malloc.c @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 2003-2005 The OpenLDAP Foundation. + * Copyright 2003-2006 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -22,7 +22,9 @@ #include "slap.h" static struct slab_object * slap_replenish_sopool(struct slab_heap* sh); +#ifdef SLAPD_UNUSED static void print_slheap(int level, void *ctx); +#endif void slap_sl_mem_destroy( @@ -73,8 +75,6 @@ slap_sl_mem_destroy( ber_memfree_x(sh->sh_base, NULL); ber_memfree_x(sh, NULL); } - - ber_set_option( NULL, LBER_OPT_MEMORY_FNS, NULL ); } BerMemoryFunctions slap_sl_mfuncs = @@ -600,6 +600,7 @@ slap_replenish_sopool( return so_block; } +#ifdef SLAPD_UNUSED static void print_slheap(int level, void *ctx) { @@ -640,3 +641,4 @@ print_slheap(int level, void *ctx) } } } +#endif