From: Pierangelo Masarati Date: Mon, 1 May 2006 14:53:19 +0000 (+0000) Subject: fix automated static build X-Git-Tag: OPENLDAP_REL_ENG_2_4_1ALPHA~2^2~100 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f9f8623f6e3c0dbb71a94dcefa310ea690ee084b;p=openldap fix automated static build --- 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