$(PROGRAMS): $(LDADD)
compsave.conf: ntpd complete.conf
- ./ntpd --configfile complete.conf --saveconfigquit $@
+ ./ntpd --configfile complete.conf --saveconfigquit $@+
+ grep -v '^#' $@+ > $@
check-saveconfig: complete.conf compsave.conf
-diff -u complete.conf compsave.conf
#ifdef HAVE_SYS_WAIT_H
# include <sys/wait.h>
#endif
+#include <time.h>
#include <isc/net.h>
#include <isc/result.h>
{
config_tree * cfg_ptr;
int return_value;
- time_t now = time(NULL)
+ time_t now = time(NULL);
struct tm tm = *localtime(&now);
fprintf(df, "#NTF:D %04d%02d%02d@%02d:%02d:%02d\n",
- tm.tm.tm_year+1900, tm.tm_mon+1, tm.tm_day,
+ tm.tm_year+1900, tm.tm_mon+1, tm.tm_mday,
tm.tm_hour, tm.tm_min, tm.tm_sec);
fprintf(df, "#NTF:V %s\n", Version);