mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-18 19:41:01 -05:00
Adopt C99 <stdbool.h>'s true/false.
This commit includes <stdbool.h> from defs.h and deletes my traditional definitions of TRUE and FALSE, but other than that, it's a 100% mechanical search-and-replace transforming all uses of TRUE and FALSE into the C99-standardised lowercase spellings. No actual types are changed in this commit; that will come next. This is just getting the noise out of the way, so that subsequent commits can have a higher proportion of signal.
This commit is contained in:
@ -22,13 +22,13 @@ void platform_get_x11_auth(struct X11Display *disp, Conf *conf)
|
||||
/*
|
||||
* Find the .Xauthority file.
|
||||
*/
|
||||
needs_free = FALSE;
|
||||
needs_free = false;
|
||||
xauthfile = getenv("XAUTHORITY");
|
||||
if (!xauthfile) {
|
||||
xauthfile = getenv("HOME");
|
||||
if (xauthfile) {
|
||||
xauthfile = dupcat(xauthfile, "/.Xauthority", NULL);
|
||||
needs_free = TRUE;
|
||||
needs_free = true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -39,7 +39,7 @@ void platform_get_x11_auth(struct X11Display *disp, Conf *conf)
|
||||
}
|
||||
}
|
||||
|
||||
const int platform_uses_x11_unix_by_default = TRUE;
|
||||
const int platform_uses_x11_unix_by_default = true;
|
||||
|
||||
int platform_make_x11_server(Plug *plug, const char *progname, int mindisp,
|
||||
const char *screen_number_suffix,
|
||||
@ -71,7 +71,7 @@ int platform_make_x11_server(Plug *plug, const char *progname, int mindisp,
|
||||
int addrtype = ADDRTYPE_IPV4;
|
||||
|
||||
sockets[nsockets] = new_listener(
|
||||
NULL, tcp_port, plug, FALSE, conf, addrtype);
|
||||
NULL, tcp_port, plug, false, conf, addrtype);
|
||||
|
||||
err = sk_socket_error(sockets[nsockets]);
|
||||
if (!err) {
|
||||
|
Reference in New Issue
Block a user