Cruft: There are 3 routines that convert time_t to text

Hal Murray hmurray at megapathdsl.net
Wed Mar 15 05:57:07 UTC 2017


A cleanup opportunity.

fstostr in ntp_util only called from within ntp_util but defined in ntpd.h
  %04d%02d%02d%02d%02d

lstostr in ntp_leapsec only called from within ntp_leapsec
  %04d-%02d-%02dT%02d:%02dZ

ctl_putfs in ntp_control only called from within ntp_control
 %04d%02d%02d%02d%02d

I never figured out what the fs and ls were trying to tell me.  Before the 
cleanup, the fs were probably converting ntp l_fp epoch times.


-- 
These are my opinions.  I hate spam.





More information about the devel mailing list