From: kibak.yoon Date: Mon, 23 May 2016 06:46:30 +0000 (+0900) Subject: sensord:fix compiler warnings due to the comparison of the signed and X-Git-Tag: accepted/tizen/common/20160526.145737~1^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=623b2709f08ef52a518cdc4b5ed68ce059d8b215;p=platform%2Fcore%2Fsystem%2Fsensord.git sensord:fix compiler warnings due to the comparison of the signed and unsigned int -Wsign-compare Change-Id: I0f1b785c38aa3972a0b3fc249cf02f532d05d3e3 Signed-off-by: kibak.yoon --- diff --git a/src/server/server.cpp b/src/server/server.cpp index 184df3d..fb5882d 100644 --- a/src/server/server.cpp +++ b/src/server/server.cpp @@ -234,10 +234,10 @@ void server::close_socket(void) m_command_channel_accept_socket.close(); m_event_channel_accept_socket.close(); - for (int i = 0; i < client_command_sockets.size(); ++i) + for (unsigned int i = 0; i < client_command_sockets.size(); ++i) client_command_sockets[i].close(); - for (int i = 0; i < client_event_sockets.size(); ++i) + for (unsigned int i = 0; i < client_event_sockets.size(); ++i) client_event_sockets[i].close(); client_command_sockets.clear();