summaryrefslogtreecommitdiff
path: root/sbin/shutdown/shutdown.c
diff options
context:
space:
mode:
authorEric Jackson <ericj@cvs.openbsd.org>2000-01-15 07:00:44 +0000
committerEric Jackson <ericj@cvs.openbsd.org>2000-01-15 07:00:44 +0000
commitbac5cc09ef9f9d46e1ca785cea5c6c4490df8bf5 (patch)
tree32055d4da24fbee7a10ce04af10bd5ce51a80ad2 /sbin/shutdown/shutdown.c
parente368dc3b0948129faf47af8d5dacf2628f9732e4 (diff)
add 'd' to usage. mention rc.shutdown in the man page.
Diffstat (limited to 'sbin/shutdown/shutdown.c')
-rw-r--r--sbin/shutdown/shutdown.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sbin/shutdown/shutdown.c b/sbin/shutdown/shutdown.c
index 6ada099d0cd..7f5ff6605ab 100644
--- a/sbin/shutdown/shutdown.c
+++ b/sbin/shutdown/shutdown.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: shutdown.c,v 1.17 1999/09/03 18:11:51 deraadt Exp $ */
+/* $OpenBSD: shutdown.c,v 1.18 2000/01/15 07:00:43 ericj Exp $ */
/* $NetBSD: shutdown.c,v 1.9 1995/03/18 15:01:09 cgd Exp $ */
/*
@@ -44,14 +44,15 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)shutdown.c 8.2 (Berkeley) 2/16/94";
#else
-static char rcsid[] = "$OpenBSD: shutdown.c,v 1.17 1999/09/03 18:11:51 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: shutdown.c,v 1.18 2000/01/15 07:00:43 ericj Exp $";
#endif
#endif /* not lint */
#include <sys/param.h>
-#include <sys/time.h>
#include <sys/resource.h>
#include <sys/syslog.h>
+#include <sys/types.h>
+#include <sys/wait.h>
#include <ctype.h>
#include <fcntl.h>
@@ -62,6 +63,7 @@ static char rcsid[] = "$OpenBSD: shutdown.c,v 1.17 1999/09/03 18:11:51 deraadt E
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <time.h>
#include <tzfile.h>
#include <unistd.h>
#include <errno.h>
@@ -120,7 +122,6 @@ main(argc, argv)
int argc;
char *argv[];
{
- extern int optind;
register char *p, *endp;
struct passwd *pw;
int arglen, ch, len, readstdin;
@@ -572,6 +573,6 @@ badtime()
void
usage()
{
- fprintf(stderr, "usage: shutdown [-fhknpr] shutdowntime [ message ]\n");
+ fprintf(stderr, "usage: shutdown [-dfhknpr] shutdowntime [ message ]\n");
exit(1);
}