summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rdate
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-11-12 22:27:11 +0000
committerderaadt <deraadt@openbsd.org>2013-11-12 22:27:11 +0000
commitd2c628498841c9ac8784fce4f500adc0b8f7ca9d (patch)
tree15f50b7be9106db910bad82892c55a0413493186 /usr.sbin/rdate
parentTrick the compiler that volatile temporary is used while raising (diff)
downloadwireguard-openbsd-d2c628498841c9ac8784fce4f500adc0b8f7ca9d.tar.xz
wireguard-openbsd-d2c628498841c9ac8784fce4f500adc0b8f7ca9d.zip
ensure there are prototypes
Diffstat (limited to 'usr.sbin/rdate')
-rw-r--r--usr.sbin/rdate/ntpleaps.c6
-rw-r--r--usr.sbin/rdate/rdate.c7
-rw-r--r--usr.sbin/rdate/rfc868time.c8
3 files changed, 14 insertions, 7 deletions
diff --git a/usr.sbin/rdate/ntpleaps.c b/usr.sbin/rdate/ntpleaps.c
index 1d728043e47..541f6375fa3 100644
--- a/usr.sbin/rdate/ntpleaps.c
+++ b/usr.sbin/rdate/ntpleaps.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntpleaps.c,v 1.10 2013/04/20 17:55:51 deraadt Exp $ */
+/* $OpenBSD: ntpleaps.c,v 1.11 2013/11/12 22:27:13 deraadt Exp $ */
/*
* Copyright (c) 2002 Thorsten Glaser. All rights reserved.
@@ -31,7 +31,7 @@
/* Leap second support for NTP clients (generic) */
-static const char RCSId[] = "$OpenBSD: ntpleaps.c,v 1.10 2013/04/20 17:55:51 deraadt Exp $";
+static const char RCSId[] = "$OpenBSD: ntpleaps.c,v 1.11 2013/11/12 22:27:13 deraadt Exp $";
/*
@@ -53,6 +53,8 @@ static const char RCSId[] = "$OpenBSD: ntpleaps.c,v 1.10 2013/04/20 17:55:51 der
static u_int64_t *leapsecs;
static unsigned int leapsecs_num;
+u_int32_t read_be_dword(u_int8_t *ptr);
+
int
ntpleaps_init(void)
diff --git a/usr.sbin/rdate/rdate.c b/usr.sbin/rdate/rdate.c
index fc5f4971e71..1c503dc64bf 100644
--- a/usr.sbin/rdate/rdate.c
+++ b/usr.sbin/rdate/rdate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rdate.c,v 1.29 2013/08/16 19:47:43 guenther Exp $ */
+/* $OpenBSD: rdate.c,v 1.30 2013/11/12 22:27:13 deraadt Exp $ */
/* $NetBSD: rdate.c,v 1.4 1996/03/16 12:37:45 pk Exp $ */
/*
@@ -57,10 +57,11 @@
#define logwtmp(a,b,c)
#endif
-void rfc868time_client (const char *, int, struct timeval *, struct timeval *, int);
-void ntp_client (const char *, int, struct timeval *, struct timeval *, int);
+void rfc868time_client(const char *, int, struct timeval *, struct timeval *, int);
+void ntp_client(const char *, int, struct timeval *, struct timeval *, int);
extern char *__progname;
+__dead void usage(void);
__dead void
usage(void)
diff --git a/usr.sbin/rdate/rfc868time.c b/usr.sbin/rdate/rfc868time.c
index 39a821a730b..7f1b23bc283 100644
--- a/usr.sbin/rdate/rfc868time.c
+++ b/usr.sbin/rdate/rfc868time.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rfc868time.c,v 1.8 2013/04/20 17:55:46 deraadt Exp $ */
+/* $OpenBSD: rfc868time.c,v 1.9 2013/11/12 22:27:13 deraadt Exp $ */
/* $NetBSD: rdate.c,v 1.4 1996/03/16 12:37:45 pk Exp $ */
/*
@@ -58,9 +58,13 @@
/* seconds from midnight Jan 1900 - 1970 */
#define DIFFERENCE 2208988800UL
+void
+rfc868time_client(const char *hostname, int family, struct timeval *new,
+ struct timeval *adjust, int leapflag);
+
void
-rfc868time_client (const char *hostname, int family, struct timeval *new,
+rfc868time_client(const char *hostname, int family, struct timeval *new,
struct timeval *adjust, int leapflag)
{
struct addrinfo hints, *res0, *res;