mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-18 03:20:59 -05:00
Switch some Conf settings over to being bool.
I think this is the full set of things that ought logically to be boolean. One annoyance is that quite a few radio-button controls in config.c address Conf fields that are now bool rather than int, which means that the shared handler function can't just access them all with conf_{get,set}_int. Rather than back out the rigorous separation of int and bool in conf.c itself, I've just added a similar alternative handler function for the bool-typed ones.
This commit is contained in:
4
telnet.c
4
telnet.c
@ -412,7 +412,7 @@ static void process_subneg(Telnet *telnet)
|
||||
logeventf(telnet->logctx, "server:\tSB %s SEND",
|
||||
telopt(telnet->sb_opt));
|
||||
if (telnet->sb_opt == TELOPT_OLD_ENVIRON) {
|
||||
if (conf_get_int(telnet->conf, CONF_rfc_environ)) {
|
||||
if (conf_get_bool(telnet->conf, CONF_rfc_environ)) {
|
||||
value = RFC_VALUE;
|
||||
var = RFC_VAR;
|
||||
} else {
|
||||
@ -746,7 +746,7 @@ static const char *telnet_init(Seat *seat, Backend **backend_handle,
|
||||
/*
|
||||
* Initialise option states.
|
||||
*/
|
||||
if (conf_get_int(telnet->conf, CONF_passive_telnet)) {
|
||||
if (conf_get_bool(telnet->conf, CONF_passive_telnet)) {
|
||||
const struct Opt *const *o;
|
||||
|
||||
for (o = opts; *o; o++)
|
||||
|
Reference in New Issue
Block a user