mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Move declaration of st
This commit is contained in:
parent
532fb0961f
commit
bb7a0b816e
1 changed files with 3 additions and 1 deletions
|
|
@ -426,6 +426,9 @@ LDBM
|
|||
ldbm_open( char *name, int rw, int mode, int dbcachesize )
|
||||
{
|
||||
LDBM db;
|
||||
#ifdef HAVE_ST_BLKSIZE
|
||||
struct stat st;
|
||||
#endif
|
||||
|
||||
LDBM_LOCK;
|
||||
|
||||
|
|
@ -436,7 +439,6 @@ ldbm_open( char *name, int rw, int mode, int dbcachesize )
|
|||
|
||||
#ifdef HAVE_ST_BLKSIZE
|
||||
if ( dbcachesize > 0 && stat( name, &st ) == 0 ) {
|
||||
struct stat st;
|
||||
dbcachesize = (dbcachesize / st.st_blksize);
|
||||
gdbm_setopt( db, GDBM_CACHESIZE, &dbcachesize, sizeof(int) );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue