diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-05-11 23:16:45 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-05-11 23:16:45 +0000 |
commit | e9ef1df3259dcdea5c753bb82ccb9abfad765439 (patch) | |
tree | 76c913b19a17ba44b6d014c51f368196cdc92ebc /usr.bin/at/panic.c | |
parent | eb57ed20d374b5547d705390257d2c9f17995b3a (diff) |
Pass -Wall and use ANSI function headers.
Diffstat (limited to 'usr.bin/at/panic.c')
-rw-r--r-- | usr.bin/at/panic.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/usr.bin/at/panic.c b/usr.bin/at/panic.c index 87f55e90977..731c2561c6f 100644 --- a/usr.bin/at/panic.c +++ b/usr.bin/at/panic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: panic.c,v 1.7 2002/05/11 23:02:33 millert Exp $ */ +/* $OpenBSD: panic.c,v 1.8 2002/05/11 23:16:44 millert Exp $ */ /* $NetBSD: panic.c,v 1.2 1995/03/25 18:13:33 glass Exp $ */ /* @@ -42,7 +42,7 @@ /* File scope variables */ #ifndef lint -static char rcsid[] = "$OpenBSD: panic.c,v 1.7 2002/05/11 23:02:33 millert Exp $"; +static const char rcsid[] = "$OpenBSD: panic.c,v 1.8 2002/05/11 23:16:44 millert Exp $"; #endif /* External variables */ @@ -50,42 +50,39 @@ static char rcsid[] = "$OpenBSD: panic.c,v 1.7 2002/05/11 23:02:33 millert Exp $ /* Global functions */ __dead void -panic(a) - char *a; +panic(const char *a) { /* * Something fatal has happened, print error message and exit. */ (void)fprintf(stderr, "%s: %s\n", __progname, a); if (fcreated) { - PRIV_START + PRIV_START; unlink(atfile); - PRIV_END + PRIV_END; } exit(EXIT_FAILURE); } __dead void -perr(a) - char *a; +perr(const char *a) { /* * Some operating system error; print error message and exit. */ perror(a); if (fcreated) { - PRIV_START + PRIV_START; unlink(atfile); - PRIV_END + PRIV_END; } exit(EXIT_FAILURE); } __dead void -perr2(a, b) - char *a, *b; +perr2(const char *a, const char *b) { (void)fputs(a, stderr); perr(b); |