From b105e26f064009b5ba6ec4353bbb2fc3814fdaac Mon Sep 17 00:00:00 2001 From: Hyunbin Lee Date: Wed, 17 Jul 2013 14:42:10 +0900 Subject: [PATCH] Remove compilation warning Change-Id: I482d2acd31111a0818e27970125a94a1f429c34d Signed-off-by: Hyunbin Lee --- src/IpcServer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/IpcServer.cpp b/src/IpcServer.cpp index aacdd49..b7bc57b 100644 --- a/src/IpcServer.cpp +++ b/src/IpcServer.cpp @@ -303,6 +303,7 @@ IpcServer::OnConnectionRequest(GIOChannel* source, GIOCondition condition, gpoin _ChannelInfo* pChannelInfo = null; GSource* pGSource = null; GIOChannel* pChannel = null; + ssize_t res = 0; int server = -1; int client = -1; @@ -317,7 +318,7 @@ IpcServer::OnConnectionRequest(GIOChannel* source, GIOCondition condition, gpoin client = accept(server, (struct sockaddr*) &clientAddress, &clientLen); SysTryCatch(NID_IO, client != -1, , E_SYSTEM, "[E_SYSTEM] Accept failed."); - read(client, &helloMessage, sizeof(helloMessage)); + res = read(client, &helloMessage, sizeof(helloMessage)); pChannel = g_io_channel_unix_new(client); SysTryCatch(NID_IO, pChannel != null, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Not enough memory."); -- 2.7.4