1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-14 09:37:34 -05:00

Make compression functions return void.

The return value wasn't used to indicate failure; it only indicated
whether any compression was being done at all or whether the
compression method was ssh_comp_none, and we can tell the latter just
as well by the fact that its init function returns a null context
pointer.
This commit is contained in:
Simon Tatham
2018-07-10 21:27:43 +01:00
parent 445fa12da7
commit bcb94f966e
4 changed files with 22 additions and 22 deletions

View File

@ -679,8 +679,8 @@ static int zlib_disable_compression(void *handle)
return n;
}
int zlib_compress_block(void *handle, unsigned char *block, int len,
unsigned char **outblock, int *outlen)
void zlib_compress_block(void *handle, unsigned char *block, int len,
unsigned char **outblock, int *outlen)
{
struct LZ77Context *ectx = (struct LZ77Context *)handle;
struct Outbuf *out = (struct Outbuf *) ectx->userdata;
@ -796,8 +796,6 @@ int zlib_compress_block(void *handle, unsigned char *block, int len,
*outblock = out->outbuf;
*outlen = out->outlen;
return 1;
}
/* ----------------------------------------------------------------------