diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2000-06-09 16:37:55 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2000-06-09 16:37:55 +0000 |
commit | f6f08f73cb61ccff13d5d26d55298321c9725744 (patch) | |
tree | d6e6845f46812736a4e68cef4cafa678a9626d3b /bin/pax/options.c | |
parent | dd13259d5d5223a51db5eb4ec68f5dc885f6184b (diff) |
Some minor cleanup, ok'd millert@
- remove zflag variable, since gzip_program is enough to know what's
going on.
- fix ar_gzip call to not depend on global variables. Avoid bogus act
checks, avoid calling if fd == -1.
- do gzip check for append as early as possible.
- remove old K&R prototype when updating.
Diffstat (limited to 'bin/pax/options.c')
-rw-r--r-- | bin/pax/options.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/bin/pax/options.c b/bin/pax/options.c index f1ecc81ce5b..d1af16a99a0 100644 --- a/bin/pax/options.c +++ b/bin/pax/options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options.c,v 1.41 2000/01/22 20:24:52 deraadt Exp $ */ +/* $OpenBSD: options.c,v 1.42 2000/06/09 16:37:54 espie Exp $ */ /* $NetBSD: options.c,v 1.6 1996/03/26 23:54:18 mrg Exp $ */ /*- @@ -42,7 +42,7 @@ #if 0 static char sccsid[] = "@(#)options.c 8.2 (Berkeley) 4/18/94"; #else -static char rcsid[] = "$OpenBSD: options.c,v 1.41 2000/01/22 20:24:52 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: options.c,v 1.42 2000/06/09 16:37:54 espie Exp $"; #endif #endif /* not lint */ @@ -397,7 +397,6 @@ pax_options(argc, argv) /* * use gzip. Non standard option. */ - zflag = 1; gzip_program = GZIP_CMD; break; case 'B': @@ -735,7 +734,6 @@ tar_options(argc, argv) /* * use gzip. Non standard option. */ - zflag = 1; gzip_program = GZIP_CMD; break; case 'B': @@ -774,7 +772,6 @@ tar_options(argc, argv) /* * use compress. */ - zflag = 1; gzip_program = COMPRESS_CMD; break; case '0': @@ -1096,7 +1093,6 @@ cpio_options(argc, argv) /* * use gzip. Non standard option. */ - zflag = 1; gzip_program = GZIP_CMD; break; case 'A': @@ -1179,7 +1175,6 @@ cpio_options(argc, argv) /* * use compress. Non standard option. */ - zflag = 1; gzip_program = COMPRESS_CMD; break; case '6': |