summaryrefslogtreecommitdiff
path: root/usr.bin/leave
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-10 22:20:55 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-10 22:20:55 +0000
commitb8aaa8bec8414f8e55cf9b61fe0873d242c773b8 (patch)
tree5e43016c4fae834239fd38972fd58355ed6b54b5 /usr.bin/leave
parentf18f6607440f6d2da08fac3522d88a65c77a5f3e (diff)
mostly ansi cleanup; pval ok
Diffstat (limited to 'usr.bin/leave')
-rw-r--r--usr.bin/leave/leave.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/usr.bin/leave/leave.c b/usr.bin/leave/leave.c
index 7c68061be3b..3b26ae1229c 100644
--- a/usr.bin/leave/leave.c
+++ b/usr.bin/leave/leave.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: leave.c,v 1.9 2003/06/03 02:56:09 millert Exp $ */
+/* $OpenBSD: leave.c,v 1.10 2003/06/10 22:20:47 deraadt Exp $ */
/* $NetBSD: leave.c,v 1.4 1995/07/03 16:50:13 phil Exp $ */
/*
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)leave.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: leave.c,v 1.9 2003/06/03 02:56:09 millert Exp $";
+static char rcsid[] = "$OpenBSD: leave.c,v 1.10 2003/06/10 22:20:47 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -61,9 +61,7 @@ void doalarm(u_int secs);
* It nags you like a mother hen.
*/
int
-main(argc, argv)
- int argc;
- char **argv;
+main(int argc, char *argv[])
{
u_int secs;
int hours, minutes;
@@ -125,8 +123,7 @@ main(argc, argv)
}
void
-doalarm(secs)
- u_int secs;
+doalarm(u_int secs)
{
int bother;
time_t daytime;
@@ -175,7 +172,7 @@ doalarm(secs)
}
void
-usage()
+usage(void)
{
fprintf(stderr, "usage: leave [[+]hhmm]\n");
exit(1);