summaryrefslogtreecommitdiffstats
path: root/usr.bin/at/panic.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-04-12 02:42:39 +0000
committerache <ache@FreeBSD.org>1995-04-12 02:42:39 +0000
commit3ec57b4b689ddd9845b2aa3fc49df92d4af934e5 (patch)
tree6cf28d2ee52a1c8127b4b9eb970fac96197d763f /usr.bin/at/panic.c
parent9d69b1d1123b6e165254dc11c02ef070402073f6 (diff)
downloadFreeBSD-src-3ec57b4b689ddd9845b2aa3fc49df92d4af934e5.zip
FreeBSD-src-3ec57b4b689ddd9845b2aa3fc49df92d4af934e5.tar.gz
Upgrade.
Diffstat (limited to 'usr.bin/at/panic.c')
-rw-r--r--usr.bin/at/panic.c37
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);
}
OpenPOWER on IntegriCloud