summaryrefslogtreecommitdiffstats
path: root/compress.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-03-17 13:40:15 +0100
committerDamien Miller <djm@mindrot.org>2000-03-17 13:40:15 +0100
commit7684ee17ee96426970c00cb44d9d00b6611b9a57 (patch)
treecb447b6e9d3fdc10b3e66a90b198092d7245447a /compress.c
parent - Checks for 64 bit int types. Problem report from Mats Fredholm (diff)
downloadopenssh-7684ee17ee96426970c00cb44d9d00b6611b9a57.tar.xz
openssh-7684ee17ee96426970c00cb44d9d00b6611b9a57.zip
- OpenBSD CVS updates:
- [atomicio.c auth-krb4.c bufaux.c channels.c compress.c fingerprint.c] [packet.h radix.c rsa.c scp.c ssh-agent.c ssh-keygen.c sshconnect.c] [sshd.c] pedantic: signed vs. unsigned, void*-arithm, etc - [ssh.1 sshd.8] Various cleanups and standardizations.
Diffstat (limited to 'compress.c')
-rw-r--r--compress.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/compress.c b/compress.c
index 544811c19..cf15c6670 100644
--- a/compress.c
+++ b/compress.c
@@ -14,7 +14,7 @@
*/
#include "includes.h"
-RCSID("$Id: compress.c,v 1.3 1999/11/25 00:54:59 damien Exp $");
+RCSID("$Id: compress.c,v 1.4 2000/03/17 12:40:16 damien Exp $");
#include "ssh.h"
#include "buffer.h"
@@ -75,13 +75,13 @@ buffer_compress(Buffer * input_buffer, Buffer * output_buffer)
return;
/* Input is the contents of the input buffer. */
- outgoing_stream.next_in = buffer_ptr(input_buffer);
+ outgoing_stream.next_in = (unsigned char *) buffer_ptr(input_buffer);
outgoing_stream.avail_in = buffer_len(input_buffer);
/* Loop compressing until deflate() returns with avail_out != 0. */
do {
/* Set up fixed-size output buffer. */
- outgoing_stream.next_out = buf;
+ outgoing_stream.next_out = (unsigned char *)buf;
outgoing_stream.avail_out = sizeof(buf);
/* Compress as much data into the buffer as possible. */
@@ -124,10 +124,10 @@ buffer_uncompress(Buffer * input_buffer, Buffer * output_buffer)
char buf[4096];
int status;
- incoming_stream.next_in = buffer_ptr(input_buffer);
+ incoming_stream.next_in = (unsigned char *) buffer_ptr(input_buffer);
incoming_stream.avail_in = buffer_len(input_buffer);
- incoming_stream.next_out = buf;
+ incoming_stream.next_out = (unsigned char *) buf;
incoming_stream.avail_out = sizeof(buf);
for (;;) {
@@ -136,7 +136,7 @@ buffer_uncompress(Buffer * input_buffer, Buffer * output_buffer)
case Z_OK:
buffer_append(output_buffer, buf,
sizeof(buf) - incoming_stream.avail_out);
- incoming_stream.next_out = buf;
+ incoming_stream.next_out = (unsigned char *) buf;
incoming_stream.avail_out = sizeof(buf);
break;
case Z_STREAM_END: