From 1943352d6093ae27f1f4e80d786f4114be6032ac Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Mon, 6 Dec 2010 17:55:45 +0200 Subject: mingw32 build: fixed using -1 as uninitialized value for unsigned variables --- client/red_client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/red_client.cpp') diff --git a/client/red_client.cpp b/client/red_client.cpp index 4923f296..c632a216 100644 --- a/client/red_client.cpp +++ b/client/red_client.cpp @@ -351,7 +351,7 @@ RedClient::RedClient(Application& application) , _mouse_mode (SPICE_MOUSE_MODE_SERVER) , _notify_disconnect (false) , _auto_display_res (false) - , _agent_reply_wait_type (-1) + , _agent_reply_wait_type (VD_AGENT_END_MESSAGE) , _aborting (false) , _agent_connected (false) , _agent_mon_config_sent (false) @@ -1060,7 +1060,7 @@ void RedClient::on_agent_reply(VDAgentReply* reply) if (_agent_reply_wait_type == reply->type) { post_message(new Message(SPICE_MSGC_MAIN_ATTACH_CHANNELS)); _application.deactivate_interval_timer(*_agent_timer); - _agent_reply_wait_type = -1; + _agent_reply_wait_type = VD_AGENT_END_MESSAGE; } break; default: -- cgit