aboutsummaryrefslogtreecommitdiff
path: root/contrib/ntp/ntpd/refclock_parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/ntpd/refclock_parse.c')
-rw-r--r--contrib/ntp/ntpd/refclock_parse.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/ntp/ntpd/refclock_parse.c b/contrib/ntp/ntpd/refclock_parse.c
index cfe2a8968886..9f5b0d7129f8 100644
--- a/contrib/ntp/ntpd/refclock_parse.c
+++ b/contrib/ntp/ntpd/refclock_parse.c
@@ -4256,8 +4256,7 @@ mk_utcinfo(
struct tm *tm;
int nc;
- if (wnlsf < GPSWRAP)
- wnlsf += GPSWEEKS;
+ wnlsf = basedate_expand_gpsweek(wnlsf);
/* 'wnt' not used here: would need the same treatment as 'wnlsf */
t_ls = (time_t) wnlsf * SECSPERWEEK