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