diff options
author | roberto <roberto@FreeBSD.org> | 2002-11-04 19:36:11 +0000 |
---|---|---|
committer | roberto <roberto@FreeBSD.org> | 2002-11-04 19:36:11 +0000 |
commit | a85d9ae25e8e8696677bc30feb6eaf7fc150e529 (patch) | |
tree | 5071c8dbfd7605eec15909cabca2296957573ac7 /contrib/ntp/parseutil | |
parent | 8d541346f2b91896a9ef53cafe2b81898978ccf3 (diff) | |
download | FreeBSD-src-a85d9ae25e8e8696677bc30feb6eaf7fc150e529.zip FreeBSD-src-a85d9ae25e8e8696677bc30feb6eaf7fc150e529.tar.gz |
Virgin import of ntpd 4.1.1b
Diffstat (limited to 'contrib/ntp/parseutil')
-rw-r--r-- | contrib/ntp/parseutil/dcfd.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/contrib/ntp/parseutil/dcfd.c b/contrib/ntp/parseutil/dcfd.c index 7d223de..0ee465d 100644 --- a/contrib/ntp/parseutil/dcfd.c +++ b/contrib/ntp/parseutil/dcfd.c @@ -108,7 +108,9 @@ #define dprintf(_x_) #endif +#ifdef DECL_ERRNO extern int errno; +#endif /* * display received data (avoids also detaching from tty) @@ -728,7 +730,7 @@ cvt_rawdcf( * convert a wall clock time description of DCF77 to a Unix time (seconds * since 1.1. 1970 UTC) */ -time_t +static time_t dcf_to_unixtime( clocktime_t *clock_time, unsigned *cvtrtc @@ -1083,7 +1085,7 @@ periodic_adjust( */ static void tick( - void + int signum ) { static unsigned long last_notice = 0; @@ -1217,7 +1219,7 @@ usage( * check_y2k() - internal check of Y2K logic * (a lot of this logic lifted from ../ntpd/check_y2k.c) */ -int +static int check_y2k( void ) { int year; /* current working year */ |