summaryrefslogtreecommitdiff
path: root/ntpdc/ntpdc-layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'ntpdc/ntpdc-layout.c')
-rw-r--r--ntpdc/ntpdc-layout.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/ntpdc/ntpdc-layout.c b/ntpdc/ntpdc-layout.c
new file mode 100644
index 0000000..0171488
--- /dev/null
+++ b/ntpdc/ntpdc-layout.c
@@ -0,0 +1,22 @@
+/*
+ * ntpdc-layout - print layout of NTP mode 7 request/response packets
+ */
+
+#include <config.h>
+#include <stdio.h>
+#include <stddef.h>
+
+#include "ntpdc.h"
+#include "ntp_stdlib.h"
+
+#if defined(IMPL_XNTPD_OLD) && IMPL_XNTPD != 3
+#error Unexpected IMPL_XNTPD
+#endif
+
+int
+main(void)
+{
+#include "nl.c"
+
+ return (EXIT_SUCCESS);
+}