X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Foverlays%2Fseqmod.c;h=1d7435fe0f6f70af8684193ac6697e9917c80a2c;hb=8bdfd2edbb7a09f5bfe96b2bca043680f731237a;hp=be2efda0f108506a21b0f29ae8596de24f415c05;hpb=dc0eacd40b625258355eea866d62188e5aa7ce3b;p=openldap diff --git a/servers/slapd/overlays/seqmod.c b/servers/slapd/overlays/seqmod.c index be2efda0f1..1d7435fe0f 100644 --- a/servers/slapd/overlays/seqmod.c +++ b/servers/slapd/overlays/seqmod.c @@ -1,7 +1,7 @@ /* seqmod.c - sequenced modifies */ /* This work is part of OpenLDAP Software . * - * Copyright 2004-2005 The OpenLDAP Foundation. + * Copyright 2004-2009 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -22,6 +22,7 @@ #ifdef SLAPD_OVER_SEQMOD #include "slap.h" +#include "config.h" /* This overlay serializes concurrent attempts to modify a single entry */ @@ -61,7 +62,7 @@ seqmod_op_cleanup( Operation *op, SlapReply *rs ) /* This op is done, remove it */ ldap_pvt_thread_mutex_lock( &sm->sm_mutex ); av = avl_find2( sm->sm_mods, &mtdummy, sm_avl_cmp ); - assert(av); + assert(av != NULL); mt = av->avl_data; @@ -139,7 +140,8 @@ seqmod_op_extended( static int seqmod_db_open( - BackendDB *be + BackendDB *be, + ConfigReply *cr ) { slap_overinst *on = (slap_overinst *)be->bd_info; @@ -155,7 +157,8 @@ seqmod_db_open( static int seqmod_db_close( - BackendDB *be + BackendDB *be, + ConfigReply *cr ) { slap_overinst *on = (slap_overinst *)be->bd_info; @@ -178,7 +181,7 @@ seqmod_db_close( static slap_overinst seqmod; int -seqmod_init() +seqmod_initialize() { seqmod.on_bi.bi_type = "seqmod"; seqmod.on_bi.bi_db_open = seqmod_db_open; @@ -195,7 +198,7 @@ seqmod_init() int init_module( int argc, char *argv[] ) { - return seqmod_init(); + return seqmod_initialize(); } #endif /* SLAPD_OVER_SEQMOD == SLAPD_MOD_DYNAMIC */