summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1997-03-03 03:34:34 +0000
committermillert <millert@openbsd.org>1997-03-03 03:34:34 +0000
commit706dcfe8265825afd2bf3562f656a23ac412b72f (patch)
tree705aabc3d13a4dc6daac4ec26689d9c190de2866
parentGive usage message when atq used incorrectly. (diff)
downloadwireguard-openbsd-706dcfe8265825afd2bf3562f656a23ac412b72f.tar.xz
wireguard-openbsd-706dcfe8265825afd2bf3562f656a23ac412b72f.zip
cleanup
-rw-r--r--usr.bin/at/at.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/usr.bin/at/at.c b/usr.bin/at/at.c
index 79e50a41068..2e699fb1908 100644
--- a/usr.bin/at/at.c
+++ b/usr.bin/at/at.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: at.c,v 1.10 1997/03/03 03:31:10 millert Exp $ */
+/* $OpenBSD: at.c,v 1.11 1997/03/03 03:34:34 millert Exp $ */
/* $NetBSD: at.c,v 1.4 1995/03/25 18:13:31 glass Exp $ */
/*
@@ -73,7 +73,7 @@ enum { ATQ, ATRM, AT, BATCH, CAT }; /* what program we want to run */
/* File scope variables */
#ifndef lint
-static char rcsid[] = "$OpenBSD: at.c,v 1.10 1997/03/03 03:31:10 millert Exp $";
+static char rcsid[] = "$OpenBSD: at.c,v 1.11 1997/03/03 03:34:34 millert Exp $";
#endif
char *no_export[] =
@@ -678,15 +678,10 @@ main(argc, argv)
break;
case ATRM:
- if (optind == argc)
- usage();
- process_jobs(argc, argv, ATRM);
- break;
-
case CAT:
if (optind == argc)
usage();
- process_jobs(argc, argv, CAT);
+ process_jobs(argc, argv, program);
break;
case AT: