diff options
Diffstat (limited to 'usr.bin/at/panic.c')
-rw-r--r-- | usr.bin/at/panic.c | 37 |
1 files changed, 13 insertions, 24 deletions
diff --git a/usr.bin/at/panic.c b/usr.bin/at/panic.c index cd19b5a..9f96f71 100644 --- a/usr.bin/at/panic.c +++ b/usr.bin/at/panic.c @@ -1,7 +1,6 @@ -/* - * panic.c - terminate fast in case of error - * Copyright (c) 1993 by Thomas Koenig - * All rights reserved. +/* + * panic.c - terminate fast in case of error + * Copyright (C) 1993 Thomas Koenig * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -38,28 +37,26 @@ /* File scope variables */ -static char rcsid[] = "$Id: panic.c,v 1.1 1993/12/05 11:36:51 cgd Exp $"; +static char rcsid[] = "$Id: panic.c,v 1.1 1994/05/10 18:23:08 kernel Exp $"; /* External variables */ /* Global functions */ void -panic(a) - char *a; +panic(char *a) { /* Something fatal has happened, print error message and exit. */ - fprintf(stderr, "%s: %s\n", namep, a); + fprintf(stderr,"%s: %s\n",namep,a); if (fcreated) unlink(atfile); - exit(EXIT_FAILURE); + exit (EXIT_FAILURE); } void -perr(a) - char *a; +perr(char *a) { /* Some operating system error; print error message and exit. */ @@ -70,22 +67,14 @@ perr(a) exit(EXIT_FAILURE); } -void -perr2(a, b) - char *a, *b; -{ - fprintf(stderr, "%s", a); - perr(b); -} - void usage(void) { /* Print usage and exit. */ - fprintf(stderr, "Usage: at [-q x] [-f file] [-m] time\n" - " atq [-q x] [-v]\n" - " atrm [-q x] job ...\n" - " batch [-f file] [-m]\n"); - exit(EXIT_FAILURE); + fprintf(stderr, "Usage: at [-V] [-q x] [-f file] [-m] time\n" + " atq [-V] [-q x] [-v]\n" + " atrm [-V] [-q x] job ...\n" + " batch [-V] [-f file] [-m]\n"); + exit(EXIT_FAILURE); } |