]> git.sur5r.net Git - openldap/commitdiff
Remove unused variables
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 9 May 2007 19:11:44 +0000 (19:11 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 9 May 2007 19:11:44 +0000 (19:11 +0000)
servers/slapd/bconfig.c
servers/slapd/connection.c
servers/slapd/daemon.c
servers/slapd/modify.c

index 07727a485588d257e52fcb3047b9e9bfd88681d7..95501429d65fc14512c01f3db067044bf1258764 100644 (file)
@@ -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 */
index 8c86a026221a6e41a6180c1ab18598a2296d78fc..b745cd3c35f7f85071301d18f643c9a6839b98e3 100644 (file)
@@ -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, "", "",
index 9953c6d8dc17929e5c90dfe8a77faa00baa01f0f..61c6b5935bd1ef97400fea45d95ddcdf31822491 100644 (file)
@@ -1724,7 +1724,6 @@ slap_listener(
                {
                        uid_t uid;
                        gid_t gid;
-                       int rc;
 
 #ifdef LDAP_PF_LOCAL_SENDMSG
                        peerbv.bv_val = peerbuf;
index b902e8d32fc6fd9ef178fa57193128420ef744cc..5b46c1a09fee04fbb1b6ef68ceb91146cebf1bb7 100644 (file)
@@ -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 );