]> git.sur5r.net Git - openldap/commitdiff
Remove unused variables
authorHallvard Furuseth <hallvard@openldap.org>
Sat, 6 Mar 1999 16:29:05 +0000 (16:29 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Sat, 6 Mar 1999 16:29:05 +0000 (16:29 +0000)
16 files changed:
clients/gopher/go500gw.c
clients/mail500/main.c
clients/rcpt500/main.c
clients/rcpt500/query.c
clients/ud/main.c
libraries/libldap/charset.c
servers/slapd/back-ldbm/cache.c
servers/slapd/back-ldbm/dn2id.c
servers/slapd/back-ldbm/id2children.c
servers/slapd/back-ldbm/index.c
servers/slapd/back-ldbm/init.c
servers/slapd/back-ldbm/nextid.c
servers/slapd/back-ldbm/search.c
servers/slapd/phonetic.c
servers/slapd/result.c
servers/slapd/schema.c

index e420821389e73f55e3a4dc93fc66a1e34ce0e73e..b0c1a65d5b2ad8625f74e08ba78855bfb0fe289a 100644 (file)
@@ -798,8 +798,7 @@ do_search( LDAP *ld, FILE *fp, char *query )
        }
 
        if ( count == 1 ) {
-               char    *dn, **s, **oc;
-               int     rc;
+               char    *dn, **oc;
 
                e = ldap_first_entry( ld, res );
                oc = ldap_get_values( ld, e, "objectClass" );
index f885feec4cfbe7fe39518be098c8a7bf8e166846..7aa2a7d1b5745e8a7aa8272505a14e27f995b5d4 100644 (file)
@@ -935,7 +935,7 @@ add_member(
 {
        char            *ndn;
        char            **mail;
-       int             i, rc;
+       int             rc;
        LDAPMessage     *res, *e;
        struct timeval  timeout;
 
@@ -1621,7 +1621,7 @@ get_attributes_mail_dn(
 )
 {
        LDAPMessage     *ee, *res;
-       char            **vals, **dnlist, **mail, **grname, **graddr;
+       char            **vals, **dnlist, **mail, **grname;
         char            *dn;
        int             nto = 0, i, rc;
        struct timeval  timeout;
index 449c1b8a5ac252ae0066a6898c65b6d714632f5c..fc12b247e9ee0d32ba90c8dec1bcdd121ef61a43 100644 (file)
@@ -55,7 +55,6 @@ main( int argc, char **argv )
     char               *prog, *usage = "%s [-l] [-U] [-h ldaphost] [-p ldapport] [-b searchbase] [-a] [-z sizelimit] [-u dapuser] [-f filterfile] [-t templatefile] [-c rdncount]\n";
     struct msginfo     msg;
     int                        c, errflg;
-    char               *replytext;
 
     *reply = '\0';
 
index f9675ba4704313b6bc6fba5f74d286d46606ea7a..b82f5215d96e91811d773b93722be88ca569eda9 100644 (file)
@@ -40,7 +40,7 @@ query_cmd( struct msginfo *msgp, char *reply )
 {
     LDAP                       *ldp;
     LDAPMessage                        *ldmsgp, *entry;
-    char                       *s, *dn;
+    char                       *dn;
     int                                matches, rc, ld_errno, ufn;
     LDAPFiltDesc               *lfdp;
     LDAPFiltInfo               *lfi;
index 75d8fede0daee1289233dd8692f55bccc4d4859b..6dd447411a2623409f716b505c5ca506dee85e68 100644 (file)
@@ -170,7 +170,6 @@ do_commands( void )
        LDAPMessage *mp;                        /* returned by find() */
        register char *cp;                      /* misc char pointer */
        register char *ap;                      /* misc char pointer */
-       static char buf[MED_BUF_SIZE];          /* for prompting */
        static char cmd[MED_BUF_SIZE];          /* holds the command */
        static char input[MED_BUF_SIZE];        /* buffer for input */
 
index 5a324ed2df7c6e09777caf1b148c4cdfed0bb31a..430eaa98d2c2ad61bc238853363c079b5020f29b 100644 (file)
@@ -1027,7 +1027,6 @@ ldap_t61_to_8859( char **bufp, unsigned long *buflenp, int free_input )
   unsigned int  n;
   int           c;
   unsigned long len;
-  Couple        *cc;
 
   Debug( LDAP_DEBUG_TRACE, "ldap_t61_to_8859 input length: %ld\n",
        *buflenp, 0, 0 );
index 53a7428cb9976876c7b506bcdde558b91f244893..e5bd055b5149d35ac0f6249c00839e9adcb11164 100644 (file)
@@ -427,7 +427,6 @@ cache_find_entry_dn2id(
     char               *dn
 )
 {
-       struct ldbminfo *li = (struct ldbminfo *) be->be_private;
        Entry           e, *ep;
        ID                      id;
 
index 31fd29618567e3fa92d8f73104e202837f21c56f..a29557e11db5e22264917eee85bb35369b4b5574 100644 (file)
@@ -116,7 +116,6 @@ dn2id_delete(
     char       *dn
 )
 {
-       struct ldbminfo *li = (struct ldbminfo *) be->be_private;
        struct dbcache  *db;
        Datum           key;
        int             rc;
index 904a37f970f72977a70e2ed5fdfd135ec5677fc2..3d09ef412a357a972adbf8f2d32e693bf9b71302 100644 (file)
@@ -19,8 +19,6 @@ id2children_add(
 {
        struct dbcache  *db;
        Datum           key;
-       int             len, rc;
-       ID_BLOCK                *idl;
        char            buf[20];
 
        ldbm_datum_init( key );
@@ -63,8 +61,6 @@ id2children_remove(
 {
        struct dbcache  *db;
        Datum           key;
-       int             len, rc;
-       ID_BLOCK                *idl;
        char            buf[20];
 
        Debug( LDAP_DEBUG_TRACE, "=> id2children_remove( %ld, %ld )\n", p ? p->e_id
index 0d595119c693d912dc4be00fc6fc9b95af80d9e2..e634e912b4e1fef08550f3483034e0d1f050b002 100644 (file)
@@ -20,7 +20,6 @@ index_add_entry(
 )
 {
        Attribute       *ap;
-       char            *dnval;
        struct berval   bv;
        struct berval   *bvals[2];
 
index 95947769dc23650576e6fb3bae07a84ae33526b5..579f9ddacfb466f22d77de81d93ac628ef4f0726 100644 (file)
@@ -82,7 +82,6 @@ ldbm_back_db_init(
 {
        struct ldbminfo *li;
        char            *argv[ 4 ];
-       int             i;
 
        /* allocate backend-database-specific stuff */
        li = (struct ldbminfo *) ch_calloc( 1, sizeof(struct ldbminfo) );
index 5d31754a45c75716c0b2e739209bd9db63be14ca..1589f63b99e6ee4b7c6c822513c11532f8ec011c 100644 (file)
@@ -54,7 +54,6 @@ static int
 next_id_write( Backend *be, ID id )
 {
        struct ldbminfo *li = (struct ldbminfo *) be->be_private;
-       char    buf[20];
        char*   file = li->li_nextid_file; 
        FILE*   fp;
        int             rc;
index a754e21e2a9d9d1ab167dcd7b1e9839a978a20da..5def38a2b33b3f0c5f4e432ab5ee70d1f3f4a159 100644 (file)
@@ -51,7 +51,7 @@ ldbm_back_search(
        Attribute       *ref;
        char            *matched = NULL;
        int             rmaxsize, nrefs;
-       char            *rbuf, *rcur, *r;
+       char            *rbuf, *rcur;
        int             nentries = 0;
        char            *realBase;
 
@@ -186,7 +186,7 @@ ldbm_back_search(
                        strncmp( e->e_ndn, "REF=", 4 ) == 0 &&
                        (ref = attr_find( e->e_attrs, "ref" )) != NULL )
                {
-                       int     i, len;
+                       int     i;
 
                        if ( ref->a_vals == NULL ) {
                                Debug( LDAP_DEBUG_ANY, "null ref in (%s)\n", 
@@ -326,8 +326,6 @@ base_candidates(
 )
 {
        struct ldbminfo *li = (struct ldbminfo *) be->be_private;
-       int             rc;
-       ID              id;
        ID_BLOCK                *idl;
        Entry           *e;
 
index 27f3f91e546208639f37a9e079622147bf033cf5..ac33f4abb293d9eba81126d0d84ac68d88306bb1 100644 (file)
@@ -87,8 +87,7 @@ phonetic( char *s )
 {
         char   code, adjacent, ch;
        char    *p;
-       char    **c;
-        int    i, cmax;
+        int    i;
        char    phoneme[MAXPHONEMELEN + 1];
 
         p = s;
index 1213b9b85327c546c069b3dd05c273d2a6fd873c..e23b518b044cd9f5a10ffcf4e859586599e32099 100644 (file)
@@ -25,7 +25,7 @@ send_ldap_result2(
 )
 {
        BerElement      *ber;
-       int             rc, sd;
+       int             rc;
        unsigned long   tag, bytes;
 
        if ( err == LDAP_PARTIAL_RESULTS && (text == NULL || *text == '\0') )
@@ -186,7 +186,7 @@ send_search_entry(
 {
        BerElement      *ber;
        Attribute       *a;
-       int             i, rc, bytes, sd;
+       int             i, rc, bytes;
        struct acl      *acl;
        char            *edn;
 
index f4fab6022c3403ff5e94d6b2a5c05cf38754ba2e..a20b3fab8be4b670b0485252b136b7c5499c77da 100644 (file)
@@ -22,7 +22,6 @@ int
 oc_schema_check( Entry *e )
 {
        Attribute       *a, *aoc;
-       struct objclass *oc;
        int             i;
        int             ret = 0;