projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a977778
)
gzip: trivial code shrink -5 bytes
author
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 3 Feb 2015 14:25:17 +0000
(15:25 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 3 Feb 2015 14:25:17 +0000
(15:25 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/gzip.c
patch
|
blob
|
history
diff --git
a/archival/gzip.c
b/archival/gzip.c
index 18d795996555ebdd699d953f779172edf2f8e84c..bc1f9c60b5f160f311f6f969c5efbdc26d0e085a 100644
(file)
--- 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);
}