From: Alan T. DeKok Date: Wed, 8 Sep 2021 12:53:55 +0000 (-0400) Subject: use fr_time() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=805b84deee4fdc3fd05ad205263711c7d3d67414;p=thirdparty%2Ffreeradius-server.git use fr_time() --- diff --git a/src/lib/server/main_config.c b/src/lib/server/main_config.c index 47f81cf14ee..6f2ea617715 100644 --- a/src/lib/server/main_config.c +++ b/src/lib/server/main_config.c @@ -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;