]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Cleanup for prior merge cset
authorDave Hart <hart@ntp.org>
Sun, 20 Feb 2011 21:20:21 +0000 (21:20 +0000)
committerDave Hart <hart@ntp.org>
Sun, 20 Feb 2011 21:20:21 +0000 (21:20 +0000)
bk: 4d618595XshVi8k8up3xh89qn86qfg

include/ntp_machine.h
include/ntp_unixtime.h
libntp/systime.c
ports/winnt/libntp/SetSystemTime.c
ports/winnt/libntp/getclock.c
ports/winnt/libntp/util_clockstuff.c
util/ntp-keygen.c

index 6fa7412b5a348d757459a0e5e1d2c6c2b917a89f..3845e3e57e5f1764c7ad7780a52c73475f5b0198 100644 (file)
 #ifndef NTP_MACHINE_H
 #define NTP_MACHINE_H
 
-#include "ntp_unixtime.h"
+#ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+#endif
+#include <time.h>
+
 #include "ntp_proto.h"
 
 /*
index 39ad945e3acef8d871439c68e901b05c82744d4d..5d4da54ad4a6e8df1565fa9b2b1377885c478804 100644 (file)
@@ -6,12 +6,7 @@
 #ifndef NTP_UNIXTIME_H
 #define NTP_UNIXTIME_H
 
-#ifdef HAVE_SYS_TIME_H
-# include <sys/time.h>
-#endif
-#include <time.h>
-
-#include "ntp_types.h"
+#include "ntp_types.h" /* picks up time.h via ntp_machine.h */
 
 #ifdef SIM
 #   define GETTIMEOFDAY(a, b) (node_gettime(&ntp_node, a))
index 67176ae92440b40ee676529f75337656c88c0c65..4ff0c0e1f554a2e80e713a41b0786bc43aa6e9b3 100644 (file)
@@ -5,8 +5,8 @@
  *
  */
 #include <config.h>
-#include "ntp_machine.h"
-#include "ntp_fp.h"
+
+#include "ntp.h"
 #include "ntp_syslog.h"
 #include "ntp_unixtime.h"
 #include "ntp_stdlib.h"
index dac30c2ab8a37eec3049f79db291ebffe3bdde35..457f8440f11e40ae3061c2262535029cd4269aa6 100644 (file)
@@ -1,7 +1,9 @@
 
 #include <config.h>
+
 #include "clockstuff.h"
 #include "ntp_stdlib.h"
+#include "ntp_unixtime.h"
 
 pset_tod_using         set_tod_using = NULL;
 
index a53a5c94eeb8a6df39f598d6e38a1114dd95415d..c5666dfc36ec136c0ca5f3829e4dce004cb9c0b3 100644 (file)
@@ -2,6 +2,8 @@
  * getclock.c - Emulate Unix getclock(3) nanosecond interface for libntp/ntpd
  */
 #include "config.h"
+
+#include "ntp_unixtime.h"
 #include "clockstuff.h"
 #include "ntp_stdlib.h"
 
index 3b1dc39c829981bf43aab2019ea8dce85ec87c73..141c45b300bb21873c1b650e6d0f67dade0dc172 100644 (file)
@@ -4,6 +4,7 @@
 
 #include "ntp_syslog.h"
 #include "ntp_stdlib.h"
+#include "ntp_unixtime.h"
 #include "clockstuff.h"
 
 int
index 516a8e96a7c42fd7b5bbed81670970969292dbeb..b0ed88c7a1056d090b2a0d29bdb39f04b076da5f 100644 (file)
 #include <sys/stat.h>
 #include <sys/time.h>
 #include <sys/types.h>
-#include "ntp_types.h"
+
 #include "ntp_random.h"
 #include "ntp_stdlib.h"
 #include "ntp_assert.h"
-
 #include "ntp_libopts.h"
+#include "ntp_unixtime.h"
 #include "ntp-keygen-opts.h"
 
 #ifdef OPENSSL