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

Pass the Ssh structure to portfwd.c with a tag.

Again, safer than using a 'void *'.
This commit is contained in:
Simon Tatham
2018-09-11 15:33:10 +01:00
parent 3814a5cee8
commit c51fe7c217
4 changed files with 13 additions and 14 deletions

1
defs.h
View File

@ -47,6 +47,7 @@ typedef struct Plug_vtable Plug_vtable;
typedef struct Ldisc_tag Ldisc;
typedef struct LogContext_tag LogContext;
typedef struct ssh_tag *Ssh;
/* Note indirection: for historical reasons (it used to be closer to
* the OS socket type), the type that most code uses for a socket is
* 'Socket', not 'Socket *'. So an implementation of Socket or Plug