From 584ea90db26ac82e4f70e522da70b0391578941f Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Wed, 9 May 2007 19:11:44 +0000 Subject: [PATCH] Remove unused variables --- servers/slapd/bconfig.c | 3 --- servers/slapd/connection.c | 1 - servers/slapd/daemon.c | 1 - servers/slapd/modify.c | 3 --- 4 files changed, 8 deletions(-) diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index 07727a4855..95501429d6 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -930,7 +930,6 @@ config_generic(ConfigArgs *c) { if ( sid_list ) { ServerID *si; struct berval bv; - char *ptr; for ( si = sid_list; si; si=si->si_next ) { if ( !BER_BVISEMPTY( &si->si_url )) { @@ -5763,10 +5762,8 @@ config_tool_entry_put( BackendDB *be, Entry *e, struct berval *text ) ConfigArgs ca; OperationBuffer opbuf; Entry *ce; - Attribute *attr; Connection conn = {0}; Operation *op = NULL; - SlapReply rs = {REP_RESULT}; void *thrctx; /* Create entry for frontend database if it does not exist already */ diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 8c86a02622..b745cd3c35 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -1200,7 +1200,6 @@ int connection_client_setup( ldap_pvt_thread_start_t *func, void *arg ) { - int rc; Connection *c; c = connection_init( s, (Listener *)&dummy_list, "", "", diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 9953c6d8dc..61c6b5935b 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -1724,7 +1724,6 @@ slap_listener( { uid_t uid; gid_t gid; - int rc; #ifdef LDAP_PF_LOCAL_SENDMSG peerbv.bv_val = peerbuf; diff --git a/servers/slapd/modify.c b/servers/slapd/modify.c index b902e8d32f..5b46c1a09f 100644 --- a/servers/slapd/modify.c +++ b/servers/slapd/modify.c @@ -41,9 +41,6 @@ do_modify( SlapReply *rs ) { struct berval dn = BER_BVNULL; - char *last; - ber_tag_t tag; - ber_len_t len; char textbuf[ SLAP_TEXT_BUFLEN ]; size_t textlen = sizeof( textbuf ); -- 2.39.5