summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rdate/rdate.c
diff options
context:
space:
mode:
authorjakob <jakob@openbsd.org>2002-08-10 21:37:28 +0000
committerjakob <jakob@openbsd.org>2002-08-10 21:37:28 +0000
commitb9ce4fd184d6744f0a93f62c0f12844f5e0a05cd (patch)
treecd6737eff2ce7553e21d4091022066fc91eb6c2a /usr.sbin/rdate/rdate.c
parentJust zero out pw_passwd in the pw_dup()'d copy. There's no need (diff)
downloadwireguard-openbsd-b9ce4fd184d6744f0a93f62c0f12844f5e0a05cd.tar.xz
wireguard-openbsd-b9ce4fd184d6744f0a93f62c0f12844f5e0a05cd.zip
style; from thorsten
Diffstat (limited to 'usr.sbin/rdate/rdate.c')
-rw-r--r--usr.sbin/rdate/rdate.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/usr.sbin/rdate/rdate.c b/usr.sbin/rdate/rdate.c
index e7d92bbf715..ce470ba835b 100644
--- a/usr.sbin/rdate/rdate.c
+++ b/usr.sbin/rdate/rdate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rdate.c,v 1.17 2002/07/27 20:11:34 jakob Exp $ */
+/* $OpenBSD: rdate.c,v 1.18 2002/08/10 21:37:28 jakob Exp $ */
/* $NetBSD: rdate.c,v 1.4 1996/03/16 12:37:45 pk Exp $ */
/*
@@ -42,21 +42,27 @@
#if 0
from: static char rcsid[] = "$NetBSD: rdate.c,v 1.3 1996/02/22 06:59:18 thorpej Exp $";
#else
-static const char rcsid[] = "$OpenBSD: rdate.c,v 1.17 2002/07/27 20:11:34 jakob Exp $";
+static const char rcsid[] = "$OpenBSD: rdate.c,v 1.18 2002/08/10 21:37:28 jakob Exp $";
#endif
#endif /* lint */
-#include <sys/types.h>
#include <sys/param.h>
+#include <sys/time.h>
+
#include <stdio.h>
#include <ctype.h>
#include <err.h>
#include <string.h>
-#include <sys/time.h>
#include <unistd.h>
-#include <util.h>
#include <time.h>
+/* there are systems without libutil; for portability */
+#ifndef NO_UTIL
+#include <util.h>
+#else
+#define logwtmp(a,b,c)
+#endif
+
void rfc868time_client (const char *, struct timeval *, struct timeval *);
void ntp_client (const char *, struct timeval *, struct timeval *);