=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/at/Attic/panic.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- src/usr.bin/at/Attic/panic.c 2002/05/11 23:02:33 1.7 +++ src/usr.bin/at/Attic/panic.c 2002/05/11 23:16:44 1.8 @@ -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 @@ /* 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);