mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
more cleanup from jon@symas.com
This commit is contained in:
parent
7c8c5213b1
commit
773b3aff16
@ -47,7 +47,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <ldap.h>
|
#include <ldap.h>
|
||||||
|
#include "lutil.h"
|
||||||
#include "ldap_defaults.h"
|
#include "ldap_defaults.h"
|
||||||
#include "ud.h"
|
#include "ud.h"
|
||||||
|
|
||||||
|
@ -9,6 +9,9 @@
|
|||||||
#include <ac/stdlib.h>
|
#include <ac/stdlib.h>
|
||||||
#include <ac/string.h>
|
#include <ac/string.h>
|
||||||
#include <ac/unistd.h>
|
#include <ac/unistd.h>
|
||||||
|
#ifdef HAVE_IO_H
|
||||||
|
#include <io.h>
|
||||||
|
#endif
|
||||||
#ifdef HAVE_FCNTL_H
|
#ifdef HAVE_FCNTL_H
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -170,8 +170,12 @@ int bdb_entry_release(
|
|||||||
Entry *e,
|
Entry *e,
|
||||||
int rw )
|
int rw )
|
||||||
{
|
{
|
||||||
|
int retval = 0;
|
||||||
|
|
||||||
if (o && o->o_tag == LDAP_REQ_ADD)
|
if (o && o->o_tag == LDAP_REQ_ADD)
|
||||||
entry_free(e);
|
entry_free(e);
|
||||||
else
|
else
|
||||||
return bdb_entry_return( be, e );
|
retval = bdb_entry_return( be, e );
|
||||||
|
|
||||||
|
return retval;
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,8 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <ac/string.h>
|
#include <ac/string.h>
|
||||||
|
#include <ac/unistd.h>
|
||||||
|
#include <ac/stdlib.h>
|
||||||
|
|
||||||
#include "back-bdb.h"
|
#include "back-bdb.h"
|
||||||
#include "external.h"
|
#include "external.h"
|
||||||
|
@ -365,7 +365,7 @@ long connection_init(
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
{
|
{
|
||||||
unsigned int i;
|
ber_socket_t i;
|
||||||
|
|
||||||
c = NULL;
|
c = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user