From 7b0d820ce5d93f103cc08547e4a3a9d2aa9d54b3 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 20 May 2005 23:36:23 +0000 Subject: [PATCH] minor cleanup --- servers/slapd/overlays/pcache.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/servers/slapd/overlays/pcache.c b/servers/slapd/overlays/pcache.c index 3217dde033..6fdd3ca7a5 100644 --- a/servers/slapd/overlays/pcache.c +++ b/servers/slapd/overlays/pcache.c @@ -1013,7 +1013,6 @@ cache_entries( slap_overinst *on = si->on; cache_manager *cm = on->on_bi.bi_private; query_manager* qm = cm->qm; - int i; int return_val = 0; Entry *e; struct berval crp_uuid; @@ -1181,8 +1180,7 @@ add_filter_attrs( (*new_attrs)[i].an_name = attrs[i].an_name; (*new_attrs)[i].an_desc = attrs[i].an_desc; } - (*new_attrs)[count].an_name.bv_val = NULL; - (*new_attrs)[count].an_name.bv_len = 0; + BER_BVZERO( &(*new_attrs)[count].an_name ); alluser = an_find(*new_attrs, &AllUser); allop = an_find(*new_attrs, &AllOper); } @@ -1220,7 +1218,6 @@ proxy_cache_search( int i = -1; AttributeName *filter_attrs = NULL; - AttributeName *new_attrs = NULL; Query query; @@ -1944,7 +1941,6 @@ proxy_cache_open( slap_overinst *on = (slap_overinst *)be->bd_info; cache_manager *cm = on->on_bi.bi_private; int rc = 0; - int i; /* need to inherit something from the original database... */ cm->db.be_def_limit = be->be_def_limit; -- 2.39.5