Make use of UTI_AdjustTimeval in slew handlers

This commit is contained in:
Miroslav Lichvar
2010-05-07 15:32:51 +02:00
parent f851e1f90e
commit 40d82675bd
7 changed files with 18 additions and 35 deletions

2
util.h
View File

@@ -89,7 +89,7 @@ extern int UTI_CompareIPs(IPAddr *a, IPAddr *b, IPAddr *mask);
extern char *UTI_TimeToLogForm(time_t t);
/* Adjust time following a frequency/offset change */
extern void UTI_AdjustTimeval(struct timeval *old_tv, struct timeval *when, struct timeval *new_tv, double dfreq, double doffset);
extern void UTI_AdjustTimeval(struct timeval *old_tv, struct timeval *when, struct timeval *new_tv, double *delta, double dfreq, double doffset);
extern void UTI_TimevalToInt64(struct timeval *src, NTP_int64 *dest);