summaryrefslogtreecommitdiff
path: root/bin/date
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-07-04 04:26:41 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-07-04 04:26:41 +0000
commitae43d200ad6728281488c9ec000422274ea4d8a3 (patch)
treef8e73c7af5328ad187c5c37a409d96ab040fbd06 /bin/date
parent14df51898fb77d30235fa80d84b66f49925f4bb2 (diff)
ansi
Diffstat (limited to 'bin/date')
-rw-r--r--bin/date/date.c15
-rw-r--r--bin/date/netdate.c7
2 files changed, 9 insertions, 13 deletions
diff --git a/bin/date/date.c b/bin/date/date.c
index ec668c33bb5..7c4a5c5f331 100644
--- a/bin/date/date.c
+++ b/bin/date/date.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: date.c,v 1.22 2002/04/17 03:54:30 deraadt Exp $ */
+/* $OpenBSD: date.c,v 1.23 2002/07/04 04:26:39 deraadt Exp $ */
/* $NetBSD: date.c,v 1.11 1995/09/07 06:21:05 jtc Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)date.c 8.2 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$OpenBSD: date.c,v 1.22 2002/04/17 03:54:30 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: date.c,v 1.23 2002/07/04 04:26:39 deraadt Exp $";
#endif
#endif /* not lint */
@@ -77,9 +77,7 @@ static void badformat(void);
static void usage(void);
int
-main(argc, argv)
- int argc;
- char **argv;
+main(int argc, char *argv[])
{
struct timezone tz;
int ch, rflag;
@@ -155,8 +153,7 @@ main(argc, argv)
#define ATOI2(ar) ((ar)[0] - '0') * 10 + ((ar)[1] - '0'); (ar) += 2;
void
-setthetime(p)
- char *p;
+setthetime(char *p)
{
struct tm *lt;
struct timeval tv;
@@ -262,14 +259,14 @@ setthetime(p)
}
static void
-badformat()
+badformat(void)
{
warnx("illegal time format");
usage();
}
static void
-usage()
+usage(void)
{
(void)fprintf(stderr,
"usage: %s [-anu] [-d dst] [-r seconds] [-t west] [+format]\n",
diff --git a/bin/date/netdate.c b/bin/date/netdate.c
index 7107cb9bc53..3e242428312 100644
--- a/bin/date/netdate.c
+++ b/bin/date/netdate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: netdate.c,v 1.13 2001/07/05 22:32:35 espie Exp $ */
+/* $OpenBSD: netdate.c,v 1.14 2002/07/04 04:26:39 deraadt Exp $ */
/* $NetBSD: netdate.c,v 1.10 1995/09/07 06:21:06 jtc Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)netdate.c 8.2 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$OpenBSD: netdate.c,v 1.13 2001/07/05 22:32:35 espie Exp $";
+static char rcsid[] = "$OpenBSD: netdate.c,v 1.14 2002/07/04 04:26:39 deraadt Exp $";
#endif
#endif /* not lint */
@@ -74,8 +74,7 @@ extern int retval;
* Returns 0 on success. Returns > 0 on failure, setting retval to 2;
*/
int
-netsettime(tval)
- time_t tval;
+netsettime(time_t tval)
{
struct timeval tout;
struct servent *sp;