Fixes for (Backend)->size() changes -- internal declarations didn't include
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Wed, 23 Oct 2002 14:03:11 +0000 (14:03 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Wed, 23 Oct 2002 14:03:11 +0000 (14:03 +0000)
new arguments and neither did internal calls.

git-svn-id: svn://svn.tartarus.org/sgt/putty@2119 cda61777-01e9-0310-a592-d414129be87e

raw.c
rlogin.c
ssh.c
telnet.c

diff --git a/raw.c b/raw.c
index 406dc43..90fc8a8 100644 (file)
--- 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;
index b566db7..74e8268 100644 (file)
--- 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 127ebee..258fd89 100644 (file)
--- 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);
 
index b8ce417..fdbfeda 100644 (file)
--- a/telnet.c
+++ b/telnet.c
@@ -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)) {