]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/overlays/seqmod.c
happy new year
[openldap] / servers / slapd / overlays / seqmod.c
index be2efda0f108506a21b0f29ae8596de24f415c05..278face56d26e3a7791e934017e4cc9778d8fbba 100644 (file)
@@ -1,7 +1,7 @@
 /* seqmod.c - sequenced modifies */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2004-2005 The OpenLDAP Foundation.
+ * Copyright 2004-2007 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -61,7 +61,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;
 
@@ -178,7 +178,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 +195,7 @@ seqmod_init()
 int
 init_module( int argc, char *argv[] )
 {
-       return seqmod_init();
+       return seqmod_initialize();
 }
 #endif /* SLAPD_OVER_SEQMOD == SLAPD_MOD_DYNAMIC */