]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
move slapo-lastmod to contrib/slapd-modules/lastlog/ (ITS#4701)
authorPierangelo Masarati <ando@openldap.org>
Thu, 28 Dec 2006 16:23:57 +0000 (16:23 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 28 Dec 2006 16:23:57 +0000 (16:23 +0000)
contrib/slapd-modules/lastmod/lastmod.c [moved from servers/slapd/overlays/lastmod.c with 99% similarity]
servers/slapd/overlays/Makefile.in

similarity index 99%
rename from servers/slapd/overlays/lastmod.c
rename to contrib/slapd-modules/lastmod/lastmod.c
index ad298296cb2f7ce7ac73f6d35a4755b772758877..f9e6258391b93087ca3ab88af4d01f96bd980a39 100644 (file)
@@ -1,4 +1,5 @@
 /* lastmod.c - returns last modification info */
+/* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
  * Copyright 2004-2006 The OpenLDAP Foundation.
@@ -563,7 +564,7 @@ lastmod_update( Operation *op, SlapReply *rs )
                        int             rc;
 
                        op->o_bd->bd_info = (BackendInfo *)on->on_info->oi_orig;
-                       rc = (*op->o_bd->bd_info->bi_entry_get_rw)( op, &bv_name, NULL, NULL, 0, &e );
+                       rc = op->o_bd->bd_info->bi_entry_get_rw( op, &bv_name, NULL, NULL, 0, &e );
                        if ( rc == LDAP_SUCCESS ) {
                                a = attr_find( e->e_attrs, slap_schema.si_ad_modifiersName );
                                if ( a != NULL ) {
@@ -592,7 +593,7 @@ lastmod_update( Operation *op, SlapReply *rs )
                                assert( dn_match( &bv_name, &e->e_name ) );
                                assert( dn_match( &bv_nname, &e->e_nname ) );
 
-                               (*op->o_bd->bd_info->bi_entry_release_rw)( op, e, 0 );
+                               op->o_bd->bd_info->bi_entry_release_rw( op, e, 0 );
                        }
 
                        op->o_bd->bd_info = bi;
index 7d0cca84b567fe613618115d067ee2ea55bf786f..7973d17ecfe5f177df10e39472a62c5008eae3d0 100644 (file)
@@ -21,7 +21,6 @@ SRCS = overlays.c \
        denyop.c \
        dyngroup.c \
        dynlist.c \
-       lastmod.c \
        pcache.c \
        ppolicy.c \
        refint.c \
@@ -81,9 +80,6 @@ dyngroup.la : dyngroup.lo
 dynlist.la : dynlist.lo
        $(LTLINK_MOD) -module -o $@ dynlist.lo version.lo $(LINK_LIBS)
 
-lastmod.la : lastmod.lo
-       $(LTLINK_MOD) -module -o $@ lastmod.lo version.lo $(LINK_LIBS)
-
 pcache.la : pcache.lo
        $(LTLINK_MOD) -module -o $@ pcache.lo version.lo $(LINK_LIBS)