aboutsummaryrefslogtreecommitdiff
path: root/archival/gzip.c
diff options
context:
space:
mode:
authorGravatar Denys Vlasenko <vda.linux@googlemail.com>2015-02-03 15:25:17 +0100
committerGravatar Denys Vlasenko <vda.linux@googlemail.com>2015-02-03 15:25:17 +0100
commitb62d4d9d5700d4931faac500fca11f440dacd610 (patch)
tree1b612eead90d33f824522120c2fc3ca48a96d3b2 /archival/gzip.c
parenta97777889328157bb7d06ec618bad16712a9c345 (diff)
downloadbusybox-b62d4d9d5700d4931faac500fca11f440dacd610.tar.gz
busybox-b62d4d9d5700d4931faac500fca11f440dacd610.tar.bz2
gzip: trivial code shrink -5 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/gzip.c')
-rw-r--r--archival/gzip.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/archival/gzip.c b/archival/gzip.c
index 18d795996..bc1f9c60b 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -442,19 +442,19 @@ static void put_16bit(ush w)
*dst = (uch)w;
w >>= 8;
#else
- *dst++ = (uch)w;
+ *dst = (uch)w;
w >>= 8;
if (outcnt < OUTBUFSIZ-2) {
/* Common case */
- *dst = w;
+ dst[1] = w;
G1.outcnt = outcnt + 2;
return;
}
#endif
/* Slowpath: we will need to do flush_outbuf() */
- G1.outcnt++;
- if (G1.outcnt == OUTBUFSIZ)
+ G1.outcnt = ++outcnt;
+ if (outcnt == OUTBUFSIZ)
flush_outbuf();
put_8bit(w);
}