9c73bd
From 9f8158841cc5ee3017de8f718203707d27ae87e1 Mon Sep 17 00:00:00 2001
9c73bd
From: Alexander Bokovoy <abokovoy@redhat.com>
9c73bd
Date: Sat, 4 Nov 2017 07:35:22 +0200
9c73bd
Subject: [PATCH 18/18] Clean up unused code
9c73bd
9c73bd
---
9c73bd
 src/back-sch-idview.c | 2 +-
9c73bd
 src/back-sch-nss.c    | 4 +---
9c73bd
 src/back-sch.h        | 1 -
9c73bd
 3 files changed, 2 insertions(+), 5 deletions(-)
9c73bd
9c73bd
diff --git a/src/back-sch-idview.c b/src/back-sch-idview.c
9c73bd
index 8842906..e83fb1d 100644
9c73bd
--- a/src/back-sch-idview.c
9c73bd
+++ b/src/back-sch-idview.c
9c73bd
@@ -121,7 +121,7 @@ idview_process_overrides(struct backend_search_cbdata *cbdata,
9c73bd
 					 "createtimestamp", "modifytimestamp", "parentid",
9c73bd
 					 "entryusn", "entryid", "entrydn", "ipaoriginaluid",
9c73bd
 					 "ipaanchoruuid", "nsuniqueid", "ipasshpubkey", NULL };
9c73bd
-	char *new_dn = NULL, *new_key = NULL, *sep = NULL, *new_val = NULL;
9c73bd
+	char *new_dn = NULL, *sep = NULL, *new_val = NULL;
9c73bd
 	char *override_type = NULL;
9c73bd
 	Slapi_Entry *override_entry = NULL;
9c73bd
 	Slapi_Attr *anchor = NULL, *id_attr = NULL;
9c73bd
diff --git a/src/back-sch-nss.c b/src/back-sch-nss.c
9c73bd
index e5f91b2..df04a96 100644
9c73bd
--- a/src/back-sch-nss.c
9c73bd
+++ b/src/back-sch-nss.c
9c73bd
@@ -57,7 +57,6 @@ static int
9c73bd
 bvstrprefix(const struct berval *bval, const char *s)
9c73bd
 {
9c73bd
 	size_t len;
9c73bd
-	int c;
9c73bd
 
9c73bd
 	len = strlen(s);
9c73bd
 	if (len < bval->bv_len) {
9c73bd
@@ -553,7 +552,6 @@ backend_retrieve_group_list_from_nsswitch(char *user_name, char *container_sdn,
9c73bd
 	struct nss_ops_ctx *ctx = NULL;
9c73bd
 	int lerrno = 0;
9c73bd
 	int ngroups = 0;
9c73bd
-	long int start = 0;
9c73bd
 	enum nss_status rc;
9c73bd
 
9c73bd
 	ctx = cbdata->state->nss_context;
9c73bd
@@ -674,7 +672,7 @@ void
9c73bd
 backend_search_nsswitch(struct backend_set_data *set_data,
9c73bd
 			struct backend_search_cbdata *cbdata)
9c73bd
 {
9c73bd
-	int result, rc;
9c73bd
+	int result;
9c73bd
 	struct backend_search_filter_config config =
9c73bd
 		{FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL, NULL, NULL};
9c73bd
 	struct backend_staged_search *staged = NULL;
9c73bd
diff --git a/src/back-sch.h b/src/back-sch.h
9c73bd
index a400419..483e288 100644
9c73bd
--- a/src/back-sch.h
9c73bd
+++ b/src/back-sch.h
9c73bd
@@ -137,7 +137,6 @@ struct backend_search_filter_config {
9c73bd
 #define LDAP_EXTOP_PASSMOD_TAG_NEWPWD	0x82U
9c73bd
 
9c73bd
 typedef int (*IFP)();
9c73bd
-static int backend_passwdmod_extop(Slapi_PBlock *pb);
9c73bd
 typedef struct backend_extop_handlers {
9c73bd
     char *oid;
9c73bd
     IFP extop_fct;
9c73bd
-- 
9c73bd
2.13.6
9c73bd