summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2024-11-05 09:18:36 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2024-11-05 09:18:36 +0000
commitb100db136a4fc890d932b8557c213862bb69a0a6 (patch)
treee64da3565ade073a4e608d89ad3af0e3b811962d /usr.sbin
parentf34e8a77ec1ded4f768373ba4e44e62e979fe1a4 (diff)
ncomplete is set but never used. Noticed by cc
OK tb@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ldapctl/ldapctl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/ldapctl/ldapctl.c b/usr.sbin/ldapctl/ldapctl.c
index 2e358babaac..db576852663 100644
--- a/usr.sbin/ldapctl/ldapctl.c
+++ b/usr.sbin/ldapctl/ldapctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldapctl.c,v 1.15 2021/01/15 18:57:04 rob Exp $ */
+/* $OpenBSD: ldapctl.c,v 1.16 2024/11/05 09:18:35 claudio Exp $ */
/*
* Copyright (c) 2009, 2010 Martin Hedenfalk <martin@bzero.se>
@@ -145,7 +145,6 @@ index_namespace(struct namespace *ns, const char *datadir)
struct cursor *cursor;
struct ber_element *elm;
char *path;
- long long int ncomplete = 0;
int i, rc;
log_info("indexing namespace %s", ns->suffix);
@@ -201,7 +200,6 @@ index_namespace(struct namespace *ns, const char *datadir)
btval_reset(&val);
if (rc != 0)
break;
- ++ncomplete;
}
if (btree_txn_commit(ns->indx_txn) != BT_SUCCESS)