aboutsummaryrefslogtreecommitdiff
path: root/gunzip.c
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-11-08 06:52:57 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-11-08 06:52:57 +0000
commit000adc6e490d7c13352e50d714844c27fe6e43cd (patch)
tree2e6db6a2924c6cf805c0ccd0f827c8bf35b21ee9 /gunzip.c
parent48c237ef9d506d29607530936a7e6f079d2b80e4 (diff)
downloadbusybox-w32-000adc6e490d7c13352e50d714844c27fe6e43cd.tar.gz
busybox-w32-000adc6e490d7c13352e50d714844c27fe6e43cd.tar.bz2
busybox-w32-000adc6e490d7c13352e50d714844c27fe6e43cd.zip
Move flush_outbuf to the file in which it is used, and by doing so fix a
nasty error dealing with two different variables with the same name. git-svn-id: svn://busybox.net/trunk/busybox@1294 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'gunzip.c')
-rw-r--r--gunzip.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/gunzip.c b/gunzip.c
index 1ff3c40fb..70b25bdb0 100644
--- a/gunzip.c
+++ b/gunzip.c
@@ -1176,21 +1176,6 @@ void clear_bufs(void)
1176 bytes_in = bytes_out = 0L; 1176 bytes_in = bytes_out = 0L;
1177} 1177}
1178 1178
1179/* ===========================================================================
1180 * Write the output buffer outbuf[0..outcnt-1] and update bytes_out.
1181 * (used for the compressed data only)
1182 */
1183void flush_outbuf()
1184{
1185 if (outcnt == 0)
1186 return;
1187
1188 if (!test_mode)
1189 write_buf(ofd, (char *) outbuf, outcnt);
1190 bytes_out += (ulg) outcnt;
1191 outcnt = 0;
1192}
1193
1194/* ======================================================================== */ 1179/* ======================================================================== */
1195int gunzip_main(int argc, char **argv) 1180int gunzip_main(int argc, char **argv)
1196{ 1181{