mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-07 06:22:47 -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:
10
ssh1bpp.c
10
ssh1bpp.c
@ -145,7 +145,7 @@ static void ssh1_bpp_handle_input(BinaryPacketProtocol *bpp)
|
||||
*/
|
||||
s->pktin = snew_plus(PktIn, s->biglen);
|
||||
s->pktin->qnode.prev = s->pktin->qnode.next = NULL;
|
||||
s->pktin->qnode.on_free_queue = FALSE;
|
||||
s->pktin->qnode.on_free_queue = false;
|
||||
s->pktin->type = 0;
|
||||
|
||||
s->maxlen = s->biglen;
|
||||
@ -209,7 +209,7 @@ static void ssh1_bpp_handle_input(BinaryPacketProtocol *bpp)
|
||||
if (s->bpp.logctx) {
|
||||
logblank_t blanks[MAX_BLANKS];
|
||||
int nblanks = ssh1_censor_packet(
|
||||
s->bpp.pls, s->pktin->type, FALSE,
|
||||
s->bpp.pls, s->pktin->type, false,
|
||||
make_ptrlen(s->data, s->length), blanks);
|
||||
log_packet(s->bpp.logctx, PKT_INCOMING, s->pktin->type,
|
||||
ssh1_pkt_type(s->pktin->type),
|
||||
@ -244,7 +244,7 @@ static void ssh1_bpp_handle_input(BinaryPacketProtocol *bpp)
|
||||
* schedule a run of our output side in case we
|
||||
* had any packets queued up in the meantime.
|
||||
*/
|
||||
s->pending_compression_request = FALSE;
|
||||
s->pending_compression_request = false;
|
||||
queue_idempotent_callback(&s->bpp.ic_out_pq);
|
||||
}
|
||||
break;
|
||||
@ -287,7 +287,7 @@ static void ssh1_bpp_format_packet(struct ssh1_bpp_state *s, PktOut *pkt)
|
||||
pkt->length - pkt->prefix);
|
||||
logblank_t blanks[MAX_BLANKS];
|
||||
int nblanks = ssh1_censor_packet(
|
||||
s->bpp.pls, pkt->type, TRUE, pktdata, blanks);
|
||||
s->bpp.pls, pkt->type, true, pktdata, blanks);
|
||||
log_packet(s->bpp.logctx, PKT_OUTGOING, pkt->type,
|
||||
ssh1_pkt_type(pkt->type),
|
||||
pktdata.ptr, pktdata.len, nblanks, blanks,
|
||||
@ -353,7 +353,7 @@ static void ssh1_bpp_handle_output(BinaryPacketProtocol *bpp)
|
||||
* the pending flag, and stop processing packets this
|
||||
* time.
|
||||
*/
|
||||
s->pending_compression_request = TRUE;
|
||||
s->pending_compression_request = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user