From: Pierangelo Masarati Date: Wed, 12 Mar 2008 22:45:18 +0000 (+0000) Subject: s/leave/func_leave/ to avoid OSF1 name clashing (ITS#5411) X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~98 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d22b8532ee6bc7c97436d70f0caeefe306d62639;p=openldap s/leave/func_leave/ to avoid OSF1 name clashing (ITS#5411) --- diff --git a/servers/slapd/back-bdb/dn2id.c b/servers/slapd/back-bdb/dn2id.c index f8dbc0d86d..e23784c1a3 100644 --- a/servers/slapd/back-bdb/dn2id.c +++ b/servers/slapd/back-bdb/dn2id.c @@ -302,7 +302,7 @@ bdb_dn2id( data.flags = DB_DBT_USERMEM; rc = db->cursor( db, NULL, &cursor, bdb->bi_db_opflags ); - if ( rc ) goto leave; + if ( rc ) goto func_leave; rc = bdb_dn2id_lock( bdb, dn, 0, locker, lock ); if ( rc ) goto nolock; @@ -316,7 +316,7 @@ bdb_dn2id( nolock: cursor->c_close( cursor ); -leave: +func_leave: if( rc != 0 ) { Debug( LDAP_DEBUG_TRACE, "<= bdb_dn2id: get failed: %s (%d)\n", @@ -624,7 +624,7 @@ hdb_dn2id_add( } } -leave: +func_leave: op->o_tmpfree( d, op->o_tmpmemctx ); Debug( LDAP_DEBUG_TRACE, "<= hdb_dn2id_add 0x%lx: %d\n", e->e_id, rc, 0 ); @@ -674,7 +674,7 @@ hdb_dn2id_delete( data.data = d; rc = db->cursor( db, txn, &cursor, bdb->bi_db_opflags ); - if ( rc ) goto leave; + if ( rc ) goto func_leave; /* We hold this lock until the TXN completes */ rc = bdb_dn2id_lock( bdb, &e->e_nname, 1, TXN_ID( txn ), &lock ); @@ -703,7 +703,7 @@ hdb_dn2id_delete( nolock: cursor->c_close( cursor ); -leave: +func_leave: op->o_tmpfree( d, op->o_tmpmemctx ); /* Delete IDL cache entries */ @@ -779,7 +779,7 @@ hdb_dn2id( data.data = d; rc = bdb_dn2id_lock( bdb, in, 0, locker, lock ); - if ( rc ) goto leave; + if ( rc ) goto func_leave; rc = cursor->c_get( cursor, &key, &data, DB_GET_BOTH_RANGE ); if ( rc == 0 && (dlen[1] != d->nrdnlen[1] || dlen[0] != d->nrdnlen[0] || @@ -803,7 +803,7 @@ hdb_dn2id( } } -leave: +func_leave: cursor->c_close( cursor ); op->o_tmpfree( d, op->o_tmpmemctx ); if( rc != 0 ) {