/* denyop.c - Denies operations */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 2004 The OpenLDAP Foundation.
+ * Copyright 2004-2005 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
} else {
Debug( LDAP_DEBUG_ANY, "%s: line %d: "
- "unknown operation \"%s\" "
+ "unknown operation \"%s\" at "
"\"denyop <op-list>\" line.\n",
- op, fname, lineno );
+ fname, lineno, op );
return( 1 );
}
static slap_overinst denyop;
-int denyop_init() {
+int
+denyop_init( 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[]) {
+int
+init_module( int argc, char *argv[] )
+{
return denyop_init();
}
-#endif
+#endif /* SLAPD_OVER_DENYOP == SLAPD_MOD_DYNAMIC */
#endif /* defined(SLAPD_OVER_DENYOP) */