summaryrefslogtreecommitdiff
path: root/include/ntp_fp.h
diff options
context:
space:
mode:
authorOllivier Robert <roberto@FreeBSD.org>2008-08-18 14:26:05 +0000
committerOllivier Robert <roberto@FreeBSD.org>2008-08-18 14:26:05 +0000
commitff717da2cf625e3d07537a93a4c240692fa55bd6 (patch)
tree9dcf618e4446ac2b5fca7d0afe7767382664f0d6 /include/ntp_fp.h
parentcce65f439697627afbccf5a67035a957bb4d784a (diff)
Notes
Diffstat (limited to 'include/ntp_fp.h')
-rw-r--r--include/ntp_fp.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/ntp_fp.h b/include/ntp_fp.h
index 256bab830a04..307ab102dd4b 100644
--- a/include/ntp_fp.h
+++ b/include/ntp_fp.h
@@ -7,9 +7,10 @@
#include <sys/types.h>
#include <sys/socket.h>
-#include "ntp_rfc2553.h"
#include <netinet/in.h>
+#include "ntp_rfc2553.h"
+
#include "ntp_types.h"
/*
@@ -281,7 +282,7 @@ typedef u_int32 u_fp;
#define L_SUBUF(r, uf) M_SUBUF((r)->l_ui, (r)->l_uf, (uf))
#define L_ADDF(r, f) M_ADDF((r)->l_ui, (r)->l_uf, (f))
#define L_RSHIFT(v) M_RSHIFT((v)->l_i, (v)->l_uf)
-#define L_RSHIFTU(v) M_RSHIFT((v)->l_ui, (v)->l_uf)
+#define L_RSHIFTU(v) M_RSHIFTU((v)->l_ui, (v)->l_uf)
#define L_LSHIFT(v) M_LSHIFT((v)->l_ui, (v)->l_uf)
#define L_CLR(v) ((v)->l_ui = (v)->l_uf = 0)
@@ -358,6 +359,8 @@ extern void get_systime P((l_fp *));
extern int step_systime P((double));
extern int adj_systime P((double));
+extern struct tm * ntp2unix_tm P((u_long ntp, int local));
+
#define lfptoa(_fpv, _ndec) mfptoa((_fpv)->l_ui, (_fpv)->l_uf, (_ndec))
#define lfptoms(_fpv, _ndec) mfptoms((_fpv)->l_ui, (_fpv)->l_uf, (_ndec))