]> git.sur5r.net Git - openldap/commitdiff
fix automated static build
authorPierangelo Masarati <ando@openldap.org>
Mon, 1 May 2006 14:53:19 +0000 (14:53 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 1 May 2006 14:53:19 +0000 (14:53 +0000)
servers/slapd/overlays/constraint.c

index 4173b746d93c282fc69fd18587c2c231c51dc053..18a3078077b14dfa7aceccc9429767240d6e36db 100644 (file)
@@ -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