diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-05-11 23:02:34 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-05-11 23:02:34 +0000 |
commit | 2ddcfdb41a7c87e9c0e9d3e2b4b1e8c474e2d44d (patch) | |
tree | dbb76aabc33f6e77682bf2e968ae55f6fc0f8502 /usr.bin/at/panic.c | |
parent | 1b792dd4850aa9188aa8db53b3a941c8c48c0246 (diff) |
Add POSIX -r and -t flags from FreeBSD. The old -d option is now
deprecated and no longer documented.
Also, use __progname instead of examining argv and clean up a few minor
warnings.
Diffstat (limited to 'usr.bin/at/panic.c')
-rw-r--r-- | usr.bin/at/panic.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/usr.bin/at/panic.c b/usr.bin/at/panic.c index fb3e90026c8..87f55e90977 100644 --- a/usr.bin/at/panic.c +++ b/usr.bin/at/panic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: panic.c,v 1.6 2002/05/11 21:56:54 millert Exp $ */ +/* $OpenBSD: panic.c,v 1.7 2002/05/11 23:02:33 millert Exp $ */ /* $NetBSD: panic.c,v 1.2 1995/03/25 18:13:33 glass Exp $ */ /* @@ -42,21 +42,21 @@ /* File scope variables */ #ifndef lint -static char rcsid[] = "$OpenBSD: panic.c,v 1.6 2002/05/11 21:56:54 millert Exp $"; +static char rcsid[] = "$OpenBSD: panic.c,v 1.7 2002/05/11 23:02:33 millert Exp $"; #endif /* External variables */ /* Global functions */ -void +__dead void panic(a) char *a; { /* * Something fatal has happened, print error message and exit. */ - (void)fprintf(stderr, "%s: %s\n", namep, a); + (void)fprintf(stderr, "%s: %s\n", __progname, a); if (fcreated) { PRIV_START unlink(atfile); @@ -66,7 +66,7 @@ panic(a) exit(EXIT_FAILURE); } -void +__dead void perr(a) char *a; { @@ -83,7 +83,7 @@ perr(a) exit(EXIT_FAILURE); } -void +__dead void perr2(a, b) char *a, *b; { @@ -91,15 +91,16 @@ perr2(a, b) perr(b); } -void +__dead void usage(void) { /* Print usage and exit. */ (void)fprintf(stderr, - "Usage: at [-q queue] [-f file] [-mldbv] time\n" + "Usage: at [-blmrv] [-f file] [-q queue] -t [[CC]YY]MMDDhhmm[.SS]\n" + " at [-blmrv] [-f file] [-q queue] time\n" " at -c job [job ...]\n" " atq [-q queue] [-v]\n" " atrm job [job ...]\n" - " batch [-q queue] [-f file] [-mv]\n"); + " batch [-mv] [-f file] [-q queue]\n"); exit(EXIT_FAILURE); } |