lfpinit() signed or unsigned?
Gary E. Miller
gem at rellim.com
Fri Mar 10 18:49:31 UTC 2017
Yo Hal!
On Thu, 09 Mar 2017 23:30:43 -0800
Hal Murray <hmurray at megapathdsl.net> wrote:
> I'd expect there would be one place that converts ntp to unix and one
> place that converts unix to ntp. Actually, the latter isn't
> necessary except maybe for debugging. You don't really need ntp to
> unix because you are going to subtract now to get a delta. You can
> get that by converting now to ntp and subtracting that.
Unix time needs to be converted to l_fp when it is sent out over the
wire. For example, in ntpd/ntp_packetstamp.c. That is a place that
does direct conversion to NTP Epoch and also uses the macro.
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
gem at rellim.com Tel:+1 541 382 8588
Veritas liberabit vos. -- Quid est veritas?
"If you can’t measure it, you can’t improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20170310/e84f0db2/attachment.bin>
More information about the devel
mailing list