mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
semicolon after colon in goto labels; no C++ style comments; unused vars removed or #ifdef'd
This commit is contained in:
parent
5a2014b863
commit
970abe2637
@ -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 */
|
||||
|
||||
/*
|
||||
|
@ -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 ) {
|
||||
|
@ -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 );
|
||||
|
@ -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;
|
||||
|
||||
|
@ -267,7 +267,7 @@ meta_back_group(
|
||||
ldap_msgfree( result );
|
||||
}
|
||||
|
||||
cleanup:
|
||||
cleanup:;
|
||||
if ( ld != NULL ) {
|
||||
ldap_unbind( ld );
|
||||
}
|
||||
|
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user