From f061418261beb728369a74f755cf78bd7521e0c2 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Thu, 17 Jul 2003 20:17:03 +0000 Subject: two calls is less than a loop for two; millert@ ok --- usr.bin/compress/gzopen.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.bin/compress') 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 #include @@ -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; } -- cgit v1.2.3