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