mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 21:18:59 +00:00
Fixed missing 'p' and `-' flags and other defects in the usage message.
Fixed some style bugs.
This commit is contained in:
parent
2d58f2447f
commit
689419f325
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=41683
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user