From f9f8623f6e3c0dbb71a94dcefa310ea690ee084b Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 1 May 2006 14:53:19 +0000 Subject: [PATCH] fix automated static build --- servers/slapd/overlays/constraint.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/servers/slapd/overlays/constraint.c b/servers/slapd/overlays/constraint.c index 4173b746d9..18a3078077 100644 --- a/servers/slapd/overlays/constraint.c +++ b/servers/slapd/overlays/constraint.c @@ -263,7 +263,11 @@ static slap_overinst constraint_ovl; * initialized and registered by some other function inside slapd. */ -int constraint_init() { +#if SLAPD_OVER_CONSTRAINT == SLAPD_MOD_DYNAMIC +static +#endif +int +constraint_initialize( void ) { constraint_ovl.on_bi.bi_type = "constraint"; constraint_ovl.on_bi.bi_db_config = constraint_config; constraint_ovl.on_bi.bi_db_close = constraint_close; @@ -275,7 +279,7 @@ int constraint_init() { #if SLAPD_OVER_CONSTRAINT == SLAPD_MOD_DYNAMIC int init_module(int argc, char *argv[]) { - return constraint_init(); + return constraint_initialize(); } #endif -- 2.39.5