aboutsummaryrefslogtreecommitdiff
path: root/sbin/shutdown
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-12-11 11:04:19 +0000
committerBruce Evans <bde@FreeBSD.org>1998-12-11 11:04:19 +0000
commit689419f325e0290b1c459fe320aa0ce92bfa22c1 (patch)
treea2ebe53f208506fa2da4e5d7462ae8186e9f384b /sbin/shutdown
parent2d58f2447fb317ec45debd027c1dc3fb9a00bf5e (diff)
downloadsrc-689419f325e0290b1c459fe320aa0ce92bfa22c1.tar.gz
src-689419f325e0290b1c459fe320aa0ce92bfa22c1.zip
Fixed missing 'p' and `-' flags and other defects in the usage message.
Fixed some style bugs.
Notes
Notes: svn path=/head/; revision=41683
Diffstat (limited to 'sbin/shutdown')
-rw-r--r--sbin/shutdown/shutdown.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sbin/shutdown/shutdown.c b/sbin/shutdown/shutdown.c
index a2d487d874f4..6c7d51ec3872 100644
--- a/sbin/shutdown/shutdown.c
+++ b/sbin/shutdown/shutdown.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)shutdown.c 8.2 (Berkeley) 2/16/94";
#endif
static const char rcsid[] =
- "$Id: shutdown.c,v 1.13 1998/08/03 06:22:43 charnier Exp $";
+ "$Id: shutdown.c,v 1.14 1998/12/10 23:54:02 msmith Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -151,8 +151,8 @@ main(argc, argv)
if (argc < 1)
usage();
- if ((doreboot + dohalt + dopower) > 1) {
- warnx("incompatible switches -h, -p and -r");
+ if (doreboot + dohalt + dopower > 1) {
+ warnx("incompatible switches -h, -p and -r");
usage();
}
getoffset(*argv++);
@@ -493,6 +493,7 @@ badtime()
void
usage()
{
- fprintf(stderr, "usage: shutdown [-hknr] shutdowntime [ message ]\n");
+ fprintf(stderr,
+ "usage: shutdown [-] [-hknpr] time [warning-message ...]\n");
exit(1);
}