diff options
author | Simon Tatham <anakin@pobox.com> | 2018-09-12 11:10:51 +0300 |
---|---|---|
committer | Simon Tatham <anakin@pobox.com> | 2018-09-20 00:10:58 +0300 |
commit | 8dfb2a118618618fe38d129aa42ece6803ea1ac6 (patch) | |
tree | fe2ae563888b6685eca36830f79cb033ed83ba62 /ldisc.c | |
parent | eefebaaa9ebce7000e32f1d5ecda13a38ba6bd70 (diff) |
Introduce a typedef for frontend handles.
This is another major source of unexplained 'void *' parameters
throughout the code.
In particular, the currently unused testback.c actually gave the wrong
pointer type to its internal store of the frontend handle - it cast
the input void * to a Terminal *, from which it got implicitly cast
back again when calling from_backend, and nobody noticed. Now it uses
the right type internally as well as externally.
Diffstat (limited to 'ldisc.c')
-rw-r--r-- | ldisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -78,7 +78,7 @@ static void bsb(Ldisc *ldisc, int n) #define KCTRL(x) ((x^'@') | 0x100) Ldisc *ldisc_create(Conf *conf, Terminal *term, - Backend *backend, void *frontend) + Backend *backend, Frontend *frontend) { Ldisc *ldisc = snew(Ldisc); |