aboutsummaryrefslogtreecommitdiff
path: root/libparse/clk_wharton.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2015-04-10 01:26:02 +0000
committerCy Schubert <cy@FreeBSD.org>2015-04-10 01:26:02 +0000
commit4ba32eb5a8bf3455c09d1513ed2af8d2c861a6ba (patch)
treef0f951897eebdd4e1fe1c8d47d866fa6c128828d /libparse/clk_wharton.c
parentf7cba3a80d9ebefc57776fffd17a4ae68f72e494 (diff)
Vendor import ntp 4.2.8p2vendor/ntp/4.2.8p2
Approved by: delphij Security: CVE-2015-1798, CVE-2015-1799 Security: VuXML ebd84c96-dd7e-11e4-854e-3c970e169bc2
Notes
Notes: svn path=/vendor/ntp/dist/; revision=281348 svn path=/vendor/ntp/4.2.8p2/; revision=281349; tag=vendor/ntp/4.2.8p2
Diffstat (limited to 'libparse/clk_wharton.c')
-rw-r--r--libparse/clk_wharton.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/libparse/clk_wharton.c b/libparse/clk_wharton.c
index 55ab43a9b574..a65bc53860e6 100644
--- a/libparse/clk_wharton.c
+++ b/libparse/clk_wharton.c
@@ -74,8 +74,11 @@ extern void printf (const char *, ...);
*
*/
+static parse_cvt_fnc_t cvt_wharton_400a;
+static parse_inp_fnc_t inp_wharton_400a;
+
/*
- * cvt_wharton_400a
+ * parse_cvt_fnc_t cvt_wharton_400a
*
* convert simple type format
*/
@@ -121,14 +124,14 @@ cvt_wharton_400a(
}
/*
- * inp_wharton_400a
+ * parse_inp_fnc_t inp_wharton_400a
*
- * grep data from input stream
+ * grab data from input stream
*/
static u_long
inp_wharton_400a(
parse_t *parseio,
- unsigned int ch,
+ char ch,
timestamp_t *tstamp
)
{
@@ -166,7 +169,7 @@ clockformat_t clock_wharton_400a =
0, /* conversion configuration */
"WHARTON 400A Series clock Output Format 1", /* String format name */
15, /* string buffer */
- 0 /* no private data (complete pakets) */
+ 0 /* no private data (complete packets) */
};
#else /* not (REFCLOCK && CLOCK_PARSE && CLOCK_WHARTON_400A) */