mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -05:00
Expose the Ldisc structure tag throughout the code.
That's one fewer anonymous 'void *' which might be accidentally confused with some other pointer type if I misremember the order of function arguments. While I'm here, I've made its pointer-nature explicit - that is, 'Ldisc' is now a typedef for the structure type itself rather than a pointer to it. A stylistic change only, but it feels more natural to me these days for a thing you're going to eventually pass to a 'free' function.
This commit is contained in:
@ -49,7 +49,7 @@ static int null_connected(void *);
|
||||
static int null_exitcode(void *);
|
||||
static int null_sendok(void *);
|
||||
static int null_ldisc(void *, int);
|
||||
static void null_provide_ldisc(void *, void *);
|
||||
static void null_provide_ldisc(void *, Ldisc *);
|
||||
static void null_provide_logctx(void *, void *);
|
||||
static void null_unthrottle(void *, int);
|
||||
static int null_cfg_info(void *);
|
||||
@ -157,7 +157,7 @@ static int null_ldisc(void *handle, int option) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void null_provide_ldisc (void *handle, void *ldisc) {
|
||||
static void null_provide_ldisc (void *handle, Ldisc *ldisc) {
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user