aboutsummaryrefslogtreecommitdiff
path: root/gzip.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 /gzip.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 'gzip.c')
-rw-r--r--gzip.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gzip.c b/gzip.c
index add94d0d7..2e147b1ca 100644
--- a/gzip.c
+++ b/gzip.c
@@ -3380,3 +3380,17 @@ unsigned size;
3380 isize += (ulg) len; 3380 isize += (ulg) len;
3381 return (int) len; 3381 return (int) len;
3382} 3382}
3383
3384/* ===========================================================================
3385 * Write the output buffer outbuf[0..outcnt-1] and update bytes_out.
3386 * (used for the compressed data only)
3387 */
3388void flush_outbuf()
3389{
3390 if (outcnt == 0)
3391 return;
3392
3393 write_buf(ofd, (char *) outbuf, outcnt);
3394 bytes_out += (ulg) outcnt;
3395 outcnt = 0;
3396}