diff options
author | 2008-02-25 16:53:55 +0000 | |
---|---|---|
committer | 2008-02-25 16:53:55 +0000 | |
commit | 1f14de11830ba9f1b52713aa7b51b5526253805d (patch) | |
tree | c4b16022db8e65b131ad1ece333e4b5d27fe2bf7 | |
parent | regen (diff) | |
download | wireguard-openbsd-1f14de11830ba9f1b52713aa7b51b5526253805d.tar.xz wireguard-openbsd-1f14de11830ba9f1b52713aa7b51b5526253805d.zip |
For the -l flag, set testmode to 1 instead of incrementing it. Fixes
a bogus error message problem when the -t and -l flags are used together.
OK miod@
-rw-r--r-- | usr.bin/compress/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/compress/main.c b/usr.bin/compress/main.c index bbb10313b99..35f30642ec6 100644 --- a/usr.bin/compress/main.c +++ b/usr.bin/compress/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.70 2007/04/04 13:29:45 millert Exp $ */ +/* $OpenBSD: main.c,v 1.71 2008/02/25 16:53:55 millert Exp $ */ #ifndef SMALL static const char copyright[] = @@ -36,7 +36,7 @@ static const char license[] = #endif /* SMALL */ #ifndef SMALL -static const char main_rcsid[] = "$OpenBSD: main.c,v 1.70 2007/04/04 13:29:45 millert Exp $"; +static const char main_rcsid[] = "$OpenBSD: main.c,v 1.71 2008/02/25 16:53:55 millert Exp $"; #endif #include <sys/param.h> @@ -234,7 +234,7 @@ main(int argc, char *argv[]) break; case 'l': list++; - testmode++; + testmode = 1; decomp++; break; case 'n': |