mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Remove unused variables
This commit is contained in:
parent
94fea2a17e
commit
3277a27b10
@ -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" );
|
||||
|
@ -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;
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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 */
|
||||
|
||||
|
@ -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 );
|
||||
|
@ -427,7 +427,6 @@ cache_find_entry_dn2id(
|
||||
char *dn
|
||||
)
|
||||
{
|
||||
struct ldbminfo *li = (struct ldbminfo *) be->be_private;
|
||||
Entry e, *ep;
|
||||
ID id;
|
||||
|
||||
|
@ -116,7 +116,6 @@ dn2id_delete(
|
||||
char *dn
|
||||
)
|
||||
{
|
||||
struct ldbminfo *li = (struct ldbminfo *) be->be_private;
|
||||
struct dbcache *db;
|
||||
Datum key;
|
||||
int rc;
|
||||
|
@ -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
|
||||
|
@ -20,7 +20,6 @@ index_add_entry(
|
||||
)
|
||||
{
|
||||
Attribute *ap;
|
||||
char *dnval;
|
||||
struct berval bv;
|
||||
struct berval *bvals[2];
|
||||
|
||||
|
@ -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) );
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -22,7 +22,6 @@ int
|
||||
oc_schema_check( Entry *e )
|
||||
{
|
||||
Attribute *a, *aoc;
|
||||
struct objclass *oc;
|
||||
int i;
|
||||
int ret = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user