]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
functions here take fr_time_t, not time_t
authorAlan T. DeKok <aland@freeradius.org>
Wed, 8 Sep 2021 13:48:10 +0000 (09:48 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 8 Sep 2021 13:48:10 +0000 (09:48 -0400)
src/lib/server/pool.c

index 28d15bde81fab1870f255630ee13597b14266cb4..1163a11d37e3ac850e299e1124db67aec5e379dc 100644 (file)
@@ -1224,7 +1224,7 @@ int fr_pool_reconnect(fr_pool_t *pool, request_t *request)
 {
        uint32_t                i;
        fr_pool_connection_t    *this;
-       time_t                  now;
+       fr_time_t               now;
 
        pthread_mutex_lock(&pool->mutex);
 
@@ -1282,7 +1282,7 @@ int fr_pool_reconnect(fr_pool_t *pool, request_t *request)
        pthread_cond_broadcast(&pool->done_reconnecting);
        pthread_mutex_unlock(&pool->mutex);
 
-       now = time(NULL);
+       now = fr_time();
 
        /*
         *      Now attempt to spawn 'start' connections.