Remove compilation warning
authorHyunbin Lee <hyunbin.lee@samsung.com>
Wed, 17 Jul 2013 05:42:10 +0000 (14:42 +0900)
committerHyunbin Lee <hyunbin.lee@samsung.com>
Wed, 17 Jul 2013 05:42:10 +0000 (14:42 +0900)
Change-Id: I482d2acd31111a0818e27970125a94a1f429c34d
Signed-off-by: Hyunbin Lee <hyunbin.lee@samsung.com>
src/IpcServer.cpp

index aacdd49..b7bc57b 100644 (file)
@@ -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.");