]> andersk Git - openssh.git/blobdiff - compress.c
- djm@cvs.openbsd.org 2010/01/30 02:54:53
[openssh.git] / compress.c
index 2dea7cf36f52efda07a1321a5222fbd6c7274da0..c058d222412fba86df23cf7e679bf15533988cf7 100644 (file)
@@ -1,3 +1,4 @@
+/* $OpenBSD: compress.c,v 1.25 2006/08/06 01:13:32 stevesk Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: compress.c,v 1.20 2004/01/13 19:23:15 markus Exp $");
+
+#include <sys/types.h>
+
+#include <stdarg.h>
+#include <zlib.h>
 
 #include "log.h"
 #include "buffer.h"
-#include "zlib.h"
 #include "compress.h"
 
 z_stream incoming_stream;
@@ -57,11 +61,13 @@ void
 buffer_compress_uninit(void)
 {
        debug("compress outgoing: raw data %llu, compressed %llu, factor %.2f",
-           outgoing_stream.total_in, outgoing_stream.total_out,
+           (unsigned long long)outgoing_stream.total_in,
+           (unsigned long long)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 %llu, compressed %llu, factor %.2f",
-           incoming_stream.total_out, incoming_stream.total_in,
+           (unsigned long long)incoming_stream.total_out,
+           (unsigned long long)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 && inflate_failed == 0)
This page took 0.036411 seconds and 4 git commands to generate.