mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 11:02:48 -05:00
Add a Config * argument to ldisc_create(), and use it in place of the global
cfg throughout ldisc.c. Not tested other than on Mac, but all other ports just pass &cfg as this argument for now. [originally from svn r2250]
This commit is contained in:
@ -2113,7 +2113,8 @@ int main(int argc, char **argv)
|
||||
|
||||
term_size(inst->term, cfg.height, cfg.width, cfg.savelines);
|
||||
|
||||
inst->ldisc = ldisc_create(inst->term, inst->back, inst->backhandle, inst);
|
||||
inst->ldisc =
|
||||
ldisc_create(&cfg, inst->term, inst->back, inst->backhandle, inst);
|
||||
ldisc_send(inst->ldisc, NULL, 0, 0);/* cause ldisc to notice changes */
|
||||
|
||||
inst->master_fd = pty_master_fd;
|
||||
|
@ -475,7 +475,7 @@ int main(int argc, char **argv)
|
||||
return 1;
|
||||
}
|
||||
back->provide_logctx(backhandle, logctx);
|
||||
ldisc = ldisc_create(NULL, back, backhandle, NULL);
|
||||
ldisc = ldisc_create(&cfg, NULL, back, backhandle, NULL);
|
||||
sfree(realhost);
|
||||
}
|
||||
connopen = 1;
|
||||
|
Reference in New Issue
Block a user