]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/sl_malloc.c
refuse illegal values for "threads" (ITS#4433)
[openldap] / servers / slapd / sl_malloc.c
index e5d78627dd864e9408ac8bb3aa12c5f091a3ad35..17c9207c8f200e092530c7140edc324214595d48 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * 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(
@@ -598,6 +600,7 @@ slap_replenish_sopool(
     return so_block;
 }
 
+#ifdef SLAPD_UNUSED
 static void
 print_slheap(int level, void *ctx)
 {
@@ -638,3 +641,4 @@ print_slheap(int level, void *ctx)
                }
        }
 }
+#endif