/* denyop.c - Denies operations */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 2004 The OpenLDAP Foundation.
+ * Copyright 2004-2006 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
static slap_overinst denyop;
int
-denyop_init() {
+denyop_initialize( void )
+{
memset( &denyop, 0, sizeof( slap_overinst ) );
denyop.on_bi.bi_type = "denyop";
denyop.on_bi.bi_db_init = denyop_over_init;
#if SLAPD_OVER_DENYOP == SLAPD_MOD_DYNAMIC
int
-init_module(int argc, char *argv[]) {
- return denyop_init();
+init_module( int argc, char *argv[] )
+{
+ return denyop_initialize();
}
-#endif
+#endif /* SLAPD_OVER_DENYOP == SLAPD_MOD_DYNAMIC */
#endif /* defined(SLAPD_OVER_DENYOP) */