1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 11:32:48 -05:00

Stop having a global Conf.

It's now a static in the main source file of each application that
uses it, and isn't accessible from any other source file unless the
main one passes it by reference.

In fact, there were almost no instances of the latter: only the
config-box functions in windlg.c were using 'conf' by virtue of its
globalness, and it's easy to make those take it as a parameter.
This commit is contained in:
Simon Tatham
2020-02-02 10:00:42 +00:00
parent 866f8e2d96
commit ad0c7c99f8
7 changed files with 15 additions and 14 deletions

View File

@ -39,7 +39,7 @@ void cmdline_error(const char *fmt, ...)
static bool local_tty = false; /* do we have a local tty? */
static Backend *backend;
Conf *conf;
static Conf *conf;
/*
* Default settings that are specific to Unix plink.