From 26c2c98196ca84c12fdc4b30b23590bc8fd6f216 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 28 Dec 2006 16:23:57 +0000 Subject: [PATCH] move slapo-lastmod to contrib/slapd-modules/lastlog/ (ITS#4701) --- .../overlays => contrib/slapd-modules/lastmod}/lastmod.c | 5 +++-- servers/slapd/overlays/Makefile.in | 4 ---- 2 files changed, 3 insertions(+), 6 deletions(-) rename {servers/slapd/overlays => contrib/slapd-modules/lastmod}/lastmod.c (99%) diff --git a/servers/slapd/overlays/lastmod.c b/contrib/slapd-modules/lastmod/lastmod.c similarity index 99% rename from servers/slapd/overlays/lastmod.c rename to contrib/slapd-modules/lastmod/lastmod.c index ad298296cb..f9e6258391 100644 --- a/servers/slapd/overlays/lastmod.c +++ b/contrib/slapd-modules/lastmod/lastmod.c @@ -1,4 +1,5 @@ /* lastmod.c - returns last modification info */ +/* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * * 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; diff --git a/servers/slapd/overlays/Makefile.in b/servers/slapd/overlays/Makefile.in index 7d0cca84b5..7973d17ecf 100644 --- a/servers/slapd/overlays/Makefile.in +++ b/servers/slapd/overlays/Makefile.in @@ -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) -- 2.39.5