From 818ab3bbbe73842da6b50d75ad4a64e40de5e2e6 Mon Sep 17 00:00:00 2001 From: jacob Date: Wed, 23 Oct 2002 14:03:11 +0000 Subject: [PATCH] Fixes for (Backend)->size() changes -- internal declarations didn't include new arguments and neither did internal calls. git-svn-id: svn://svn.tartarus.org/sgt/putty@2119 cda61777-01e9-0310-a592-d414129be87e --- raw.c | 4 ++-- rlogin.c | 4 ++-- ssh.c | 6 +++--- telnet.c | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/raw.c b/raw.c index 406dc437..90fc8a84 100644 --- a/raw.c +++ b/raw.c @@ -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; diff --git a/rlogin.c b/rlogin.c index b566db73..74e8268b 100644 --- a/rlogin.c +++ b/rlogin.c @@ -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 diff --git a/ssh.c b/ssh.c index 127ebeec..258fd898 100644 --- a/ssh.c +++ b/ssh.c @@ -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); diff --git a/telnet.c b/telnet.c index b8ce4171..fdbfedae 100644 --- a/telnet.c +++ b/telnet.c @@ -141,7 +141,7 @@ static char *telopt(int opt) return ""; } -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)) { -- 2.11.0