1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-14 01:27:35 -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

5
scp.c
View File

@ -99,6 +99,9 @@ static int gui_mode = 0;
static char *gui_hwnd = NULL;
static int using_sftp = 0;
static Backend *back;
static void *backhandle;
static void source(char *src);
static void rsource(char *src);
static void sink(char *targ, char *src);
@ -117,7 +120,7 @@ static void gui_update_stats(char *name, unsigned long size,
*/
#define MAX_SCP_BUFSIZE 16384
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,