Gary E. Miller <g...@rellim.com>: > Here is a size issue. > > esterror is a long of micro sec: > > ../include/ntp_syscall.h: long int esterror; /* estimated > error (us) (ro) */ > > And now esterror is a uint32_t: > > ntp_loopfilter.c: ntv.esterror = (uint32_t)(clock_jitter > * 1e6); > > Can that be made consistent, and nano sec? > > You want to try? Or would you rather I butcher it?
That cast looks wrong. So does the one on the line following. I've changed it to cast to long. As Hal says, the microsecond unit is a wired-in property of the API. We can't fix that. -- <a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
signature.asc
Description: PGP signature
_______________________________________________ devel mailing list devel@ntpsec.org http://lists.ntpsec.org/mailman/listinfo/devel