mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Silence "unused variable" warnings
This commit is contained in:
parent
3d8aceab81
commit
d449c9d08b
@ -386,7 +386,7 @@ try_read1msg(
|
||||
LDAPMessage **result )
|
||||
{
|
||||
BerElement *ber;
|
||||
LDAPMessage *new, *l, *prev, *tmp, *chain_head;
|
||||
LDAPMessage *new, *l, *prev;
|
||||
ber_int_t id;
|
||||
ber_tag_t tag;
|
||||
ber_len_t len;
|
||||
@ -397,6 +397,7 @@ try_read1msg(
|
||||
int rc, refer_cnt, hadref, simple_request;
|
||||
ber_int_t lderr;
|
||||
#ifdef LDAP_CONNECTIONLESS
|
||||
LDAPMessage *tmp, *chain_head;
|
||||
int firstmsg = 1, moremsgs = 0, isv2 = 0;
|
||||
#endif
|
||||
/*
|
||||
|
@ -236,7 +236,7 @@ int slapi_register_object_extension(
|
||||
int slapi_int_create_object_extensions(int objecttype, void *object)
|
||||
{
|
||||
#ifdef LDAP_SLAPI
|
||||
int i, rc;
|
||||
int i;
|
||||
struct slapi_extension_block *eblock;
|
||||
void **peblock;
|
||||
void *parent;
|
||||
@ -289,7 +289,7 @@ int slapi_int_create_object_extensions(int objecttype, void *object)
|
||||
int slapi_int_free_object_extensions(int objecttype, void *object)
|
||||
{
|
||||
#ifdef LDAP_SLAPI
|
||||
int i, rc;
|
||||
int i;
|
||||
struct slapi_extension_block *eblock;
|
||||
void **peblock;
|
||||
void *parent;
|
||||
@ -330,7 +330,7 @@ int slapi_int_free_object_extensions(int objecttype, void *object)
|
||||
int slapi_int_clear_object_extensions(int objecttype, void *object)
|
||||
{
|
||||
#ifdef LDAP_SLAPI
|
||||
int i, rc;
|
||||
int i;
|
||||
struct slapi_extension_block *eblock;
|
||||
void *parent;
|
||||
|
||||
|
@ -61,7 +61,7 @@ internal_search_entry(
|
||||
Operation *op,
|
||||
SlapReply *rs )
|
||||
{
|
||||
int nentries = 0, len = 0, i = 0;
|
||||
int nentries = 0, i = 0;
|
||||
Slapi_Entry **head = NULL, **tp;
|
||||
Slapi_Entry *entry;
|
||||
|
||||
|
@ -1551,10 +1551,7 @@ slapi_send_ldap_result(
|
||||
{
|
||||
#ifdef LDAP_SLAPI
|
||||
Operation *op;
|
||||
struct berval *s;
|
||||
char *extOID = NULL;
|
||||
struct berval *extValue = NULL;
|
||||
int rc;
|
||||
SlapReply rs = { REP_RESULT };
|
||||
|
||||
slapi_pblock_get( pb, SLAPI_OPERATION, &op );
|
||||
@ -4205,7 +4202,6 @@ const char *slapi_entry_get_uniqueid( const Slapi_Entry *e )
|
||||
{
|
||||
#ifdef LDAP_SLAPI
|
||||
Attribute *attr;
|
||||
const char *uniqueid;
|
||||
|
||||
attr = attr_find( e->e_attrs, slap_schema.si_ad_entryUUID );
|
||||
if ( attr == NULL ) {
|
||||
|
Loading…
Reference in New Issue
Block a user