Adam Tkac schrieb:
> Hi all,
> 
> I just finished the NTP client/server applet. Would it be possible to
> merge it to the main repository, please?
> 
> Comments are welcomed.
> 
> Regards, Adam


Hi i took a quick look at your code just a minor note,
your ntpd should support -g  and -q

(from  man ntpd)
-g
"Normally, ntpd  exits if the offset exceeds the  sanity  limit,
 which is 1000 s by default. If the sanity limit is set to zero,
 no sanity checking is performed and any offset  is  acceptable.
 This  option  overrides the limit and allows the time to be set
 to any value without restriction; however, this can happen only
 once.   After  that,  ntpd  will exit if the limit is exceeded."
-q
 Exit the ntpd  just after the first time the clock is set. This
 behavior  mimics  that  of the ntpdate  program, which is to be
 retired. The -g  and -x  options can be used with this  option




btw: in offset_compare() you can just return:
 (int)( (*a)->update.offset -(*b)->update.offset )


next time you should add sizes to your posting,

re,
 wh





_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to