mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 11:32:48 -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:
@ -100,7 +100,7 @@ int ssh2_connection_parse_global_request(
|
||||
return toret;
|
||||
} else {
|
||||
/* Unrecognised request. */
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -142,17 +142,17 @@ struct ssh_rportfwd *ssh2_rportfwd_alloc(
|
||||
int addressfamily, const char *log_description, PortFwdRecord *pfr,
|
||||
ssh_sharing_connstate *share_ctx)
|
||||
{
|
||||
assert(FALSE && "Should never be called in the server");
|
||||
assert(false && "Should never be called in the server");
|
||||
}
|
||||
|
||||
void ssh2_rportfwd_remove(ConnectionLayer *cl, struct ssh_rportfwd *rpf)
|
||||
{
|
||||
assert(FALSE && "Should never be called in the server");
|
||||
assert(false && "Should never be called in the server");
|
||||
}
|
||||
|
||||
SshChannel *ssh2_session_open(ConnectionLayer *cl, Channel *chan)
|
||||
{
|
||||
assert(FALSE && "Should never be called in the server");
|
||||
assert(false && "Should never be called in the server");
|
||||
}
|
||||
|
||||
SshChannel *ssh2_serverside_x11_open(
|
||||
@ -166,7 +166,7 @@ SshChannel *ssh2_serverside_x11_open(
|
||||
|
||||
c->connlayer = s;
|
||||
ssh2_channel_init(c);
|
||||
c->halfopen = TRUE;
|
||||
c->halfopen = true;
|
||||
c->chan = chan;
|
||||
|
||||
ppl_logevent(("Forwarding X11 channel to client"));
|
||||
@ -189,7 +189,7 @@ SshChannel *ssh2_serverside_agent_open(ConnectionLayer *cl, Channel *chan)
|
||||
|
||||
c->connlayer = s;
|
||||
ssh2_channel_init(c);
|
||||
c->halfopen = TRUE;
|
||||
c->halfopen = true;
|
||||
c->chan = chan;
|
||||
|
||||
ppl_logevent(("Forwarding SSH agent to client"));
|
||||
@ -202,19 +202,19 @@ SshChannel *ssh2_serverside_agent_open(ConnectionLayer *cl, Channel *chan)
|
||||
|
||||
void ssh2channel_start_shell(SshChannel *sc, int want_reply)
|
||||
{
|
||||
assert(FALSE && "Should never be called in the server");
|
||||
assert(false && "Should never be called in the server");
|
||||
}
|
||||
|
||||
void ssh2channel_start_command(
|
||||
SshChannel *sc, int want_reply, const char *command)
|
||||
{
|
||||
assert(FALSE && "Should never be called in the server");
|
||||
assert(false && "Should never be called in the server");
|
||||
}
|
||||
|
||||
int ssh2channel_start_subsystem(
|
||||
SshChannel *sc, int want_reply, const char *subsystem)
|
||||
{
|
||||
assert(FALSE && "Should never be called in the server");
|
||||
assert(false && "Should never be called in the server");
|
||||
}
|
||||
|
||||
void ssh2channel_send_exit_status(SshChannel *sc, int status)
|
||||
@ -262,38 +262,38 @@ void ssh2channel_request_x11_forwarding(
|
||||
SshChannel *sc, int want_reply, const char *authproto,
|
||||
const char *authdata, int screen_number, int oneshot)
|
||||
{
|
||||
assert(FALSE && "Should never be called in the server");
|
||||
assert(false && "Should never be called in the server");
|
||||
}
|
||||
|
||||
void ssh2channel_request_agent_forwarding(SshChannel *sc, int want_reply)
|
||||
{
|
||||
assert(FALSE && "Should never be called in the server");
|
||||
assert(false && "Should never be called in the server");
|
||||
}
|
||||
|
||||
void ssh2channel_request_pty(
|
||||
SshChannel *sc, int want_reply, Conf *conf, int w, int h)
|
||||
{
|
||||
assert(FALSE && "Should never be called in the server");
|
||||
assert(false && "Should never be called in the server");
|
||||
}
|
||||
|
||||
int ssh2channel_send_env_var(
|
||||
SshChannel *sc, int want_reply, const char *var, const char *value)
|
||||
{
|
||||
assert(FALSE && "Should never be called in the server");
|
||||
assert(false && "Should never be called in the server");
|
||||
}
|
||||
|
||||
int ssh2channel_send_serial_break(SshChannel *sc, int want_reply, int length)
|
||||
{
|
||||
assert(FALSE && "Should never be called in the server");
|
||||
assert(false && "Should never be called in the server");
|
||||
}
|
||||
|
||||
int ssh2channel_send_signal(
|
||||
SshChannel *sc, int want_reply, const char *signame)
|
||||
{
|
||||
assert(FALSE && "Should never be called in the server");
|
||||
assert(false && "Should never be called in the server");
|
||||
}
|
||||
|
||||
void ssh2channel_send_terminal_size_change(SshChannel *sc, int w, int h)
|
||||
{
|
||||
assert(FALSE && "Should never be called in the server");
|
||||
assert(false && "Should never be called in the server");
|
||||
}
|
||||
|
Reference in New Issue
Block a user