1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-05 21:42:47 -05:00

Port forwarding module now passes backend handles around properly.

As a result I've now been able to turn the global variables `back'
and `backhandle' into module-level statics in the individual front
ends. Now _that's_ progress!

[originally from svn r2142]
This commit is contained in:
Simon Tatham
2002-10-26 10:33:59 +00:00
parent 0b2523eeda
commit 24530b945e
10 changed files with 42 additions and 38 deletions

View File

@ -32,6 +32,8 @@ static int do_sftp_init(void);
*/
char *pwd, *homedir;
static Backend *back;
static void *backhandle;
/* ----------------------------------------------------------------------
* Higher-level helper functions used in commands.
@ -1484,7 +1486,7 @@ void connection_fatal(char *fmt, ...)
cleanup_exit(1);
}
void ldisc_send(char *buf, int len, int interactive)
void ldisc_send(void *handle, char *buf, int len, int interactive)
{
/*
* This is only here because of the calls to ldisc_send(NULL,