diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-10 15:42:39 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-10 15:42:39 +0000 |
commit | b9b6570de7e0fe1e9335fd83eab8c90a540134d9 (patch) | |
tree | d68a9945c7564acf7a401330dfe2951ce59a58ee | |
parent | 6786fffd13b59c0b609c79625c67c284bb777873 (diff) |
used to permit a single arg, which it ignored, now does usage(); fenner@freebsd
-rw-r--r-- | usr.bin/kdump/kdump.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c index fcab56840ed..35c429586a3 100644 --- a/usr.bin/kdump/kdump.c +++ b/usr.bin/kdump/kdump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kdump.c,v 1.4 1996/06/26 05:34:43 deraadt Exp $ */ +/* $OpenBSD: kdump.c,v 1.5 1996/12/10 15:42:38 deraadt Exp $ */ /*- * Copyright (c) 1988, 1993 @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)kdump.c 8.4 (Berkeley) 4/28/95"; #endif -static char *rcsid = "$OpenBSD: kdump.c,v 1.4 1996/06/26 05:34:43 deraadt Exp $"; +static char *rcsid = "$OpenBSD: kdump.c,v 1.5 1996/12/10 15:42:38 deraadt Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -167,10 +167,7 @@ main(argc, argv) default: usage(); } - argv += optind; - argc -= optind; - - if (argc > 1) + if (argc > optind) usage(); m = (void *)malloc(size = 1025); |