summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Kinder <nkinder@redhat.com>2010-10-08 14:44:18 -0700
committerNathan Kinder <nkinder@redhat.com>2010-10-08 14:44:18 -0700
commit5ae39a968b9b28d4c44407490228645c5c1e0764 (patch)
tree796cd22da1b9e4fb6796f1d5bb12b3329b47a112
parente766b5a9e07666b95d8ba505bd512adccd41d8a3 (diff)
downloadds-master.tar.gz
ds-master.tar.xz
ds-master.zip
Cov #16300 - Unused variable in account policy pluginHEADmaster
The plugin_id variable is unused in acct_inact_limit(). This patch removes the unused variable.
-rw-r--r--ldap/servers/plugins/acctpolicy/acct_plugin.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ldap/servers/plugins/acctpolicy/acct_plugin.c b/ldap/servers/plugins/acctpolicy/acct_plugin.c
index 14a05123..6d9edb3c 100644
--- a/ldap/servers/plugins/acctpolicy/acct_plugin.c
+++ b/ldap/servers/plugins/acctpolicy/acct_plugin.c
@@ -38,10 +38,8 @@ acct_inact_limit( Slapi_PBlock *pb, char *dn, Slapi_Entry *target_entry, acctPol
time_t lim_t, last_t, cur_t;
int rc = 0; /* Optimistic default */
acctPluginCfg *cfg;
- void *plugin_id;
cfg = get_config();
- plugin_id = get_identity();
if( ( lasttimestr = get_attr_string_val( target_entry,
cfg->state_attr_name ) ) != NULL ) {
slapi_log_error( SLAPI_LOG_PLUGIN, PRE_PLUGIN_NAME,