aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2015-02-03 15:25:17 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2015-02-03 15:25:17 +0100
commitb62d4d9d5700d4931faac500fca11f440dacd610 (patch)
tree1b612eead90d33f824522120c2fc3ca48a96d3b2
parenta97777889328157bb7d06ec618bad16712a9c345 (diff)
downloadbusybox-w32-b62d4d9d5700d4931faac500fca11f440dacd610.tar.gz
busybox-w32-b62d4d9d5700d4931faac500fca11f440dacd610.tar.bz2
busybox-w32-b62d4d9d5700d4931faac500fca11f440dacd610.zip
gzip: trivial code shrink -5 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-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)
442 *dst = (uch)w; 442 *dst = (uch)w;
443 w >>= 8; 443 w >>= 8;
444#else 444#else
445 *dst++ = (uch)w; 445 *dst = (uch)w;
446 w >>= 8; 446 w >>= 8;
447 if (outcnt < OUTBUFSIZ-2) { 447 if (outcnt < OUTBUFSIZ-2) {
448 /* Common case */ 448 /* Common case */
449 *dst = w; 449 dst[1] = w;
450 G1.outcnt = outcnt + 2; 450 G1.outcnt = outcnt + 2;
451 return; 451 return;
452 } 452 }
453#endif 453#endif
454 454
455 /* Slowpath: we will need to do flush_outbuf() */ 455 /* Slowpath: we will need to do flush_outbuf() */
456 G1.outcnt++; 456 G1.outcnt = ++outcnt;
457 if (G1.outcnt == OUTBUFSIZ) 457 if (outcnt == OUTBUFSIZ)
458 flush_outbuf(); 458 flush_outbuf();
459 put_8bit(w); 459 put_8bit(w);
460} 460}