mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
s/time(0)/time(NULL)/
This commit is contained in:
parent
c47a2c4fce
commit
d2487f9219
1 changed files with 2 additions and 2 deletions
|
|
@ -409,7 +409,7 @@ static void
|
|||
use_connection( LDAP *ld, LDAPConn *lc )
|
||||
{
|
||||
++lc->lconn_refcnt;
|
||||
lc->lconn_lastused = time( 0 );
|
||||
lc->lconn_lastused = time( NULL );
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -456,7 +456,7 @@ ldap_free_connection( LDAP *ld, LDAPConn *lc, int force, int unbind )
|
|||
Debug( LDAP_DEBUG_TRACE, "ldap_free_connection: actually freed\n",
|
||||
0, 0, 0 );
|
||||
} else {
|
||||
lc->lconn_lastused = time( 0 );
|
||||
lc->lconn_lastused = time( NULL );
|
||||
Debug( LDAP_DEBUG_TRACE, "ldap_free_connection: refcnt %d\n",
|
||||
lc->lconn_refcnt, 0, 0 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue