diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-07-17 20:17:03 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-07-17 20:17:03 +0000 |
commit | f061418261beb728369a74f755cf78bd7521e0c2 (patch) | |
tree | ba7a1b17d17d6b76cced1fcd33695a26734579a3 /usr.bin/compress | |
parent | e110a89f4d58a06bc42084df1a402f1c843e8867 (diff) |
two calls is less than a loop for two; millert@ ok
Diffstat (limited to 'usr.bin/compress')
-rw-r--r-- | usr.bin/compress/gzopen.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/compress/gzopen.c b/usr.bin/compress/gzopen.c index d9885fc9205..c0893a0bb19 100644 --- a/usr.bin/compress/gzopen.c +++ b/usr.bin/compress/gzopen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gzopen.c,v 1.13 2003/07/17 20:06:01 millert Exp $ */ +/* $OpenBSD: gzopen.c,v 1.14 2003/07/17 20:17:02 mickey Exp $ */ /* * Copyright (c) 1997 Michael Shalayeff @@ -59,7 +59,7 @@ */ const char gz_rcsid[] = - "$OpenBSD: gzopen.c,v 1.13 2003/07/17 20:06:01 millert Exp $"; + "$OpenBSD: gzopen.c,v 1.14 2003/07/17 20:17:02 mickey Exp $"; #include <sys/param.h> #include <sys/stat.h> @@ -359,8 +359,8 @@ get_header(gz_stream *s, char *name, int gotmagic) } if ((flags & HEAD_CRC) != 0) { /* skip the header crc */ - for (len = 0; len < 2; len++) - (void)get_byte(s); + (void)get_byte(s); + (void)get_byte(s); s->z_hlen += 2; } |