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:
@ -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.
|
||||
|
Reference in New Issue
Block a user