]> git.sur5r.net Git - openldap/commitdiff
s/time(0)/time(NULL)/
authorKurt Zeilenga <kurt@openldap.org>
Mon, 19 Jul 1999 19:28:21 +0000 (19:28 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 19 Jul 1999 19:28:21 +0000 (19:28 +0000)
libraries/libldap/request.c

index 76aa484e90fcc8c927d03b69cdf3dd8d938473c3..da17e273bf3fb5d1f152e7823b0df3aa911a2c5d 100644 (file)
@@ -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 );
        }