diff options
author | 2000-03-16 20:56:13 +0000 | |
---|---|---|
committer | 2000-03-16 20:56:13 +0000 | |
commit | 53b84d04b33cbcd0a48406a978d282956856adae (patch) | |
tree | ac9c22dd310124b036b8172bfee3ef9827818838 /usr.bin/ssh/compress.c | |
parent | document that other vendors use the hifn pci id too (diff) | |
download | wireguard-openbsd-53b84d04b33cbcd0a48406a978d282956856adae.tar.xz wireguard-openbsd-53b84d04b33cbcd0a48406a978d282956856adae.zip |
-pedantic: signed vs. unsigned, void*-arithm, etc
Diffstat (limited to 'usr.bin/ssh/compress.c')
-rw-r--r-- | usr.bin/ssh/compress.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/ssh/compress.c b/usr.bin/ssh/compress.c index f4a87857348..03e50817396 100644 --- a/usr.bin/ssh/compress.c +++ b/usr.bin/ssh/compress.c @@ -14,7 +14,7 @@ */ #include "includes.h" -RCSID("$Id: compress.c,v 1.4 1999/11/24 19:53:46 markus Exp $"); +RCSID("$Id: compress.c,v 1.5 2000/03/16 20:56:14 markus 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: |