Gary E. Miller <>:
> 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="";>Eric S. Raymond</a>

Attachment: signature.asc
Description: PGP signature

devel mailing list

Reply via email to