From: Alan T. DeKok Date: Mon, 23 Jan 2023 22:10:04 +0000 (-0500) Subject: typo to rearrange code X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e249c464a58ad9009ea3bc90074973585b2d9a7;p=thirdparty%2Ffreeradius-server.git typo to rearrange code --- diff --git a/src/lib/util/time.c b/src/lib/util/time.c index 325580513c9..314410eea7c 100644 --- a/src/lib/util/time.c +++ b/src/lib/util/time.c @@ -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));