From b100db136a4fc890d932b8557c213862bb69a0a6 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Tue, 5 Nov 2024 09:18:36 +0000 Subject: ncomplete is set but never used. Noticed by cc OK tb@ --- usr.sbin/ldapctl/ldapctl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'usr.sbin') 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 @@ -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) -- cgit v1.2.3