1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 01:02:24 +00:00

Fixes for (Backend)->size() changes -- internal declarations didn't include

new arguments and neither did internal calls.

[originally from svn r2119]
This commit is contained in:
Jacob Nevins 2002-10-23 14:03:11 +00:00
parent 38413e0530
commit 771b0299c3
4 changed files with 9 additions and 9 deletions

4
raw.c
View File

@ -17,7 +17,7 @@ static Socket s = NULL;
static int raw_bufsize;
static void *frontend;
static void raw_size(void);
static void raw_size(int width, int height);
static void c_write(char *buf, int len)
{
@ -130,7 +130,7 @@ static int raw_sendbuffer(void)
/*
* Called to set the size of the window
*/
static void raw_size(void)
static void raw_size(int width, int height)
{
/* Do nothing! */
return;

View File

@ -19,7 +19,7 @@ static int rlogin_bufsize;
static int rlogin_term_width, rlogin_term_height;
static void *frontend;
static void rlogin_size(void);
static void rlogin_size(int width, int height);
static void c_write(char *buf, int len)
{
@ -50,7 +50,7 @@ static int rlogin_receive(Plug plug, int urgent, char *data, int len)
c = *data++;
len--;
if (c == '\x80')
rlogin_size();
rlogin_size(rlogin_term_width, rlogin_term_height);
/*
* We should flush everything (aka Telnet SYNCH) if we see
* 0x02, and we should turn off and on _local_ flow control

6
ssh.c
View File

@ -573,7 +573,7 @@ static int ssh1_stdout_throttling;
static void (*ssh_protocol) (unsigned char *in, int inlen, int ispkt);
static void ssh1_protocol(unsigned char *in, int inlen, int ispkt);
static void ssh2_protocol(unsigned char *in, int inlen, int ispkt);
static void ssh_size(void);
static void ssh_size(int width, int height);
static void ssh_special(Telnet_Special);
static int ssh2_try_send(struct ssh_channel *c);
static void ssh2_add_channel_data(struct ssh_channel *c, char *buf,
@ -3189,7 +3189,7 @@ static void ssh1_protocol(unsigned char *in, int inlen, int ispkt)
ssh_state = SSH_STATE_SESSION;
if (size_needed)
ssh_size();
ssh_size(ssh_term_width, ssh_term_height);
if (eof_needed)
ssh_special(TS_EOF);
@ -5253,7 +5253,7 @@ static void do_ssh2_authconn(unsigned char *in, int inlen, int ispkt)
ssh_state = SSH_STATE_SESSION;
if (size_needed)
ssh_size();
ssh_size(ssh_term_width, ssh_term_height);
if (eof_needed)
ssh_special(TS_EOF);

View File

@ -141,7 +141,7 @@ static char *telopt(int opt)
return "<unknown>";
}
static void telnet_size(void);
static void telnet_size(int width, int height);
struct Opt {
int send; /* what we initially send */
@ -256,7 +256,7 @@ static void option_side_effects(struct Opt *o, int enabled)
static void activate_option(struct Opt *o)
{
if (o->send == WILL && o->option == TELOPT_NAWS)
telnet_size();
telnet_size(telnet_term_width, telnet_term_height);
if (o->send == WILL &&
(o->option == TELOPT_NEW_ENVIRON ||
o->option == TELOPT_OLD_ENVIRON)) {