mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-05 21:42:47 -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:
10
ssh.c
10
ssh.c
@ -341,8 +341,12 @@ static void *ssh_comp_none_init(void)
|
||||
static void ssh_comp_none_cleanup(void *handle)
|
||||
{
|
||||
}
|
||||
static int ssh_comp_none_block(void *handle, unsigned char *block, int len,
|
||||
unsigned char **outblock, int *outlen)
|
||||
static void ssh_comp_none_block(void *handle, unsigned char *block, int len,
|
||||
unsigned char **outblock, int *outlen)
|
||||
{
|
||||
}
|
||||
static int ssh_decomp_none_block(void *handle, unsigned char *block, int len,
|
||||
unsigned char **outblock, int *outlen)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@ -353,7 +357,7 @@ static int ssh_comp_none_disable(void *handle)
|
||||
const static struct ssh_compress ssh_comp_none = {
|
||||
"none", NULL,
|
||||
ssh_comp_none_init, ssh_comp_none_cleanup, ssh_comp_none_block,
|
||||
ssh_comp_none_init, ssh_comp_none_cleanup, ssh_comp_none_block,
|
||||
ssh_comp_none_init, ssh_comp_none_cleanup, ssh_decomp_none_block,
|
||||
ssh_comp_none_disable, NULL
|
||||
};
|
||||
extern const struct ssh_compress ssh_zlib;
|
||||
|
Reference in New Issue
Block a user