]> andersk Git - openssh.git/blobdiff - compress.c
- djm@cvs.openbsd.org 2001/12/21 10:06:43
[openssh.git] / compress.c
index 3e41b3d8218357e586bd8137fbd6e9e18f367317..73aebe89a62ba3c6c14ce77dece9746b1c158c29 100644 (file)
@@ -12,7 +12,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: compress.c,v 1.14 2001/04/05 10:39:01 markus Exp $");
+RCSID("$OpenBSD: compress.c,v 1.16 2001/12/19 07:18:56 deraadt Exp $");
 
 #include "log.h"
 #include "buffer.h"
@@ -33,7 +33,7 @@ void
 buffer_compress_init_send(int level)
 {
        if (compress_init_send_called == 1)
-               deflateEnd(&incoming_stream);
+               deflateEnd(&outgoing_stream);
        compress_init_send_called = 1;
        debug("Enabling compression at level %d.", level);
        if (level < 1 || level > 9)
@@ -55,13 +55,13 @@ void
 buffer_compress_uninit(void)
 {
        debug("compress outgoing: raw data %lu, compressed %lu, factor %.2f",
-             outgoing_stream.total_in, outgoing_stream.total_out,
-             outgoing_stream.total_in == 0 ? 0.0 :
-             (double) outgoing_stream.total_out / outgoing_stream.total_in);
+           outgoing_stream.total_in, outgoing_stream.total_out,
+           outgoing_stream.total_in == 0 ? 0.0 :
+           (double) outgoing_stream.total_out / outgoing_stream.total_in);
        debug("compress incoming: raw data %lu, compressed %lu, factor %.2f",
-             incoming_stream.total_out, incoming_stream.total_in,
-             incoming_stream.total_out == 0 ? 0.0 :
-             (double) incoming_stream.total_in / incoming_stream.total_out);
+           incoming_stream.total_out, incoming_stream.total_in,
+           incoming_stream.total_out == 0 ? 0.0 :
+           (double) incoming_stream.total_in / incoming_stream.total_out);
        if (compress_init_recv_called == 1)
                inflateEnd(&incoming_stream);
        if (compress_init_send_called == 1)
This page took 0.088133 seconds and 4 git commands to generate.