]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
typo to rearrange code
authorAlan T. DeKok <aland@freeradius.org>
Mon, 23 Jan 2023 22:10:04 +0000 (17:10 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 23 Jan 2023 22:10:04 +0000 (17:10 -0500)
src/lib/util/time.c

index 325580513c9ade6f6ec8d12ef2ed65c8e75f5d3c..314410eea7c04a41f5ba5894ab8ca2a35d08f4ea 100644 (file)
@@ -149,9 +149,10 @@ int fr_time_sync(void)
  */
 int fr_time_start(void)
 {
-       tzset();        /* Populate timezone, daylight and tzname globals */
        struct timespec ts;
 
+       tzset();        /* Populate timezone, daylight and tzname globals */
+
        if (clock_gettime(CLOCK_MONOTONIC_RAW, &ts) < 0) return -1;
        fr_time_epoch = fr_time_delta_unwrap(fr_time_delta_from_timespec(&ts));