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:
4
psftp.c
4
psftp.c
@ -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,
|
||||
|
Reference in New Issue
Block a user