From b80e06bab89f413f40553f85490e0b8ce3225df7 Mon Sep 17 00:00:00 2001 From: Joshua Wise Date: Tue, 2 Dec 2008 07:31:57 -0500 Subject: [PATCH] We do not speak Pittsburgh here. --- net/rfb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/rfb.c b/net/rfb.c index 4f272cc..fbd14b1 100644 --- a/net/rfb.c +++ b/net/rfb.c @@ -91,7 +91,7 @@ struct rfb_state { char next_update_incremental; struct fb_update_req client_interest_area; - uint8_t needs_updated; + uint8_t update_allowed; uint8_t sending; }; @@ -253,7 +253,7 @@ static enum fsm_result recv_fsm(struct tcp_pcb *pcb, struct rfb_state *state) { return NEEDMORE; outputf("RFB: UpdateRequest"); - state->needs_updated = 1; + state->update_allowed = 1; memcpy(&state->client_interest_area, state->data, sizeof(struct fb_update_req)); @@ -350,7 +350,7 @@ static err_t rfb_recv(void *arg, struct tcp_pcb *pcb, outputf("RFB FSM: ok"); /* Might as well send now... */ - if (state->needs_updated && !state->sending) { + if (state->update_allowed && !state->sending) { start_send(pcb, state); } @@ -384,7 +384,7 @@ static err_t rfb_accept(void *arg, struct tcp_pcb *pcb, err_t err) { state->state = ST_BEGIN; state->readpos = 0; state->writepos = 0; - state->needs_updated = 0; + state->update_allowed = 0; state->sending = 0; /* XXX: update_server_info() should be called from the 64ms timer, and deal -- 2.43.0