semicolon after colon in goto labels; no C++ style comments; unused vars removed or #ifdef'd

This commit is contained in:
Pierangelo Masarati 2001-06-03 08:55:17 +00:00
parent 5a2014b863
commit 970abe2637
6 changed files with 13 additions and 9 deletions

View File

@ -95,7 +95,7 @@ meta_back_add(
LDAP_LOG(( "backend", LDAP_LEVEL_ENTRY, "meta_back_add: %s\n",
e->e_dn ));
#else /* !NEW_LOGGING */
Debug(LDAP_DEBUG_ARGS, "==> meta_back_add: %s\n", e->e_dn, 0, 0);
Debug(LDAP_DEBUG_ARGS, "==> meta_back_add: %s\n%s%s", e->e_dn, "", "");
#endif /* !NEW_LOGGING */
/*

View File

@ -102,7 +102,6 @@ meta_back_attribute(
LDAPMessage *result, *e;
char *gattr[ 2 ];
LDAP *ld;
char *me_ndn;
*vals = NULL;
if ( target != NULL && strcmp( target->e_ndn, e_ndn ) == 0 ) {

View File

@ -281,7 +281,7 @@ meta_back_compare(
}
}
finish:
finish:;
/*
* Rewrite the matched portion of the search base, if required
@ -342,7 +342,7 @@ finish:
send_ldap_result( conn, op, rres, mmatch, err, NULL, NULL );
cleanup:
cleanup:;
if ( match != NULL ) {
if ( mmatch != match ) {
free( mmatch );

View File

@ -137,7 +137,10 @@ meta_back_db_config(
/* URI of server to query */
if ( strcasecmp( argv[ 0 ], "uri" ) == 0 ) {
int j, i = li->ntargets;
int i = li->ntargets;
#if 0
int j;
#endif /* uncomment if uri MUST be a branch of suffix */
LDAPURLDesc *ludp;
char *last;

View File

@ -267,7 +267,7 @@ meta_back_group(
ldap_msgfree( result );
}
cleanup:
cleanup:;
if ( ld != NULL ) {
ldap_unbind( ld );
}

View File

@ -201,8 +201,10 @@ meta_back_search(
*/
lsc[ 0 ]->candidate = META_NOT_CANDIDATE;
continue;
// rc = meta_back_op_result(lc, op);
// goto finish;
/*
rc = meta_back_op_result(lc, op);
goto finish;
*/
}
}
@ -474,7 +476,7 @@ meta_back_search(
send_search_result( conn, op, sres,
mmatch, err, NULL, NULL, count );
finish:
finish:;
if ( match ) {
if ( mmatch != match ) {
free( mmatch );