summaryrefslogtreecommitdiffstats
path: root/server/reds.c
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2012-08-05 16:00:55 +0300
committerYonit Halperin <yhalperi@redhat.com>2012-08-27 09:13:07 +0300
commitc617379821feb0c2cf990394163765498ae1bda1 (patch)
tree1db41157d172e60952b78b76df02fe48436eee0a /server/reds.c
parent443b2d4270c7379cb3a54501299223302f54a3db (diff)
downloadspice-c617379821feb0c2cf990394163765498ae1bda1.tar.gz
spice-c617379821feb0c2cf990394163765498ae1bda1.tar.xz
spice-c617379821feb0c2cf990394163765498ae1bda1.zip
reds: s/HADER/HEADER
Diffstat (limited to 'server/reds.c')
-rw-r--r--server/reds.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/server/reds.c b/server/reds.c
index a5a5a75a..f1cc2f27 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -158,7 +158,7 @@ static VDIReadBuf *vdi_port_read_buf_ref(VDIReadBuf *buf);
static void vdi_port_read_buf_unref(VDIReadBuf *buf);
enum {
- VDI_PORT_READ_STATE_READ_HADER,
+ VDI_PORT_READ_STATE_READ_HEADER,
VDI_PORT_READ_STATE_GET_BUFF,
VDI_PORT_READ_STATE_READ_DATA,
};
@@ -621,7 +621,7 @@ static void reds_reset_vdp(void)
VDIPortState *state = &reds->agent_state;
SpiceCharDeviceInterface *sif;
- state->read_state = VDI_PORT_READ_STATE_READ_HADER;
+ state->read_state = VDI_PORT_READ_STATE_READ_HEADER;
state->recive_pos = (uint8_t *)&state->vdi_chunk_header;
state->recive_len = sizeof(state->vdi_chunk_header);
state->message_recive_len = 0;
@@ -894,7 +894,7 @@ static SpiceCharDeviceMsgToClient *vdi_port_read_one_msg_from_device(SpiceCharDe
sif = SPICE_CONTAINEROF(vdagent->base.sif, SpiceCharDeviceInterface, base);
while (vdagent) {
switch (state->read_state) {
- case VDI_PORT_READ_STATE_READ_HADER:
+ case VDI_PORT_READ_STATE_READ_HEADER:
n = sif->read(vdagent, state->recive_pos, state->recive_len);
if (!n) {
return NULL;
@@ -929,7 +929,7 @@ static SpiceCharDeviceMsgToClient *vdi_port_read_one_msg_from_device(SpiceCharDe
state->current_read_buf = NULL;
state->recive_pos = NULL;
if (state->message_recive_len == 0) {
- state->read_state = VDI_PORT_READ_STATE_READ_HADER;
+ state->read_state = VDI_PORT_READ_STATE_READ_HEADER;
state->recive_pos = (uint8_t *)&state->vdi_chunk_header;
state->recive_len = sizeof(state->vdi_chunk_header);
} else {
@@ -3616,7 +3616,7 @@ static void init_vd_agent_resources(void)
agent_msg_filter_init(&state->write_filter, agent_copypaste, TRUE);
agent_msg_filter_init(&state->read_filter, agent_copypaste, TRUE);
- state->read_state = VDI_PORT_READ_STATE_READ_HADER;
+ state->read_state = VDI_PORT_READ_STATE_READ_HEADER;
state->recive_pos = (uint8_t *)&state->vdi_chunk_header;
state->recive_len = sizeof(state->vdi_chunk_header);