]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use fr_time()
authorAlan T. DeKok <aland@freeradius.org>
Wed, 8 Sep 2021 12:53:55 +0000 (08:53 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 8 Sep 2021 12:53:55 +0000 (08:53 -0400)
src/lib/server/main_config.c

index 47f81cf14eef64294000f3924b9c5a6f958dc025..6f2ea617715f01698d7d565d3ce9854ddfab68d6 100644 (file)
@@ -1361,9 +1361,9 @@ void hup_logfile(main_config_t *config)
 
 void main_config_hup(main_config_t *config)
 {
-       time_t          when;
+       fr_time_t               when;
 
-       static time_t   last_hup = 0;
+       static fr_time_t        last_hup = 0;
 
        /*
         *      Re-open the log file.  If we can't, then keep logging
@@ -1377,7 +1377,7 @@ void main_config_hup(main_config_t *config)
        /*
         *      Only check the config files every few seconds.
         */
-       when = time(NULL);
+       when = fr_time();
        if ((last_hup + 2) >= when) {
                INFO("HUP - Last HUP was too recent.  Ignoring");
                return;