Fix a build error
authorSunwook Bae <sunwook45.bae@samsung.com>
Tue, 14 May 2013 08:29:25 +0000 (17:29 +0900)
committerSunwook Bae <sunwook45.bae@samsung.com>
Tue, 14 May 2013 08:29:25 +0000 (17:29 +0900)
Change-Id: I3d65b257ad53914b128ef07339cc1862983c295e
Signed-off-by: Sunwook Bae <sunwook45.bae@samsung.com>
src/io/FIo_IpcClient.cpp

index 2e389cb..4b1e302 100644 (file)
@@ -146,6 +146,7 @@ _IpcClient::MakeConnection(bool forReverse)
        socklen_t serverLen = 0;
        int client = -1;
        int ret = 0;
+       int retry = 0;
        HelloMessage helloMessage = {0, 0};
        std::string socketName;
        char* pSocketName = null;
@@ -202,7 +203,7 @@ _IpcClient::MakeConnection(bool forReverse)
        serverLen = sizeof(server);
 
        // Retry if the server is not ready
-       int retry = 5;
+       retry = 5;
        while (retry > 0)
        {
                ret = connect(client, (struct sockaddr*) &server, serverLen);