sensord: change comment for syncing 60/71160/1
authorkibak.yoon <kibak.yoon@samsung.com>
Tue, 24 May 2016 07:56:21 +0000 (16:56 +0900)
committerkibak.yoon <kibak.yoon@samsung.com>
Tue, 24 May 2016 07:56:21 +0000 (16:56 +0900)
- comments are different between tizen 2.3 and tizen 3.0. so sync them.

Change-Id: I011df5ef30ac5075f2eb36327364fc90bc85e4b1
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/shared/csocket.cpp

index 00697f6..09a7d0e 100644 (file)
@@ -250,10 +250,10 @@ ssize_t csocket::send_for_stream(const void *buffer, size_t size) const
                                len, get_client_name());
 
                        /*
-                       * If socket is not available to use it temporarily,
-                       * EAGAIN(EWOULDBLOCK) is returned by ::send().
-                       * so in order to prevent that data are omitted, retry to send it
-                       */
+                        * If socket is not available to use it temporarily,
+                        * EAGAIN(EWOULDBLOCK) is returned by ::send().
+                        * so in order to prevent that data are omitted, sleep&retry to send it
+                        */
                        if ((errno == EAGAIN) || (errno == EWOULDBLOCK)) {
                                usleep(1000);
                                continue;
@@ -291,10 +291,10 @@ ssize_t csocket::recv_for_stream(void* buffer, size_t size) const
                                len, get_client_name());
 
                        /*
-                       * If socket is not available to use during for some time,
-                       * EAGAIN(EWOULDBLOCK) is returned by ::recv().
-                       * so in order to prevent that data are omitted, retry to receive it
-                       */
+                        * If socket is not available to use it temporarily,
+                        * EAGAIN(EWOULDBLOCK) is returned by ::recv().
+                        * so in order to prevent that data are omitted, sleep&retry to receive it
+                        */
                        if ((errno == EAGAIN) || (errno == EWOULDBLOCK)) {
                                usleep(1000);
                                continue;
@@ -359,7 +359,7 @@ bool csocket::connect(const char *sock_path)
 
        addr_len = strlen(m_addr.sun_path) + sizeof(m_addr.sun_family);
 
-       if (::connect(m_sock_fd, (sockaddr *) &m_addr, addr_len) < 0) {
+       if (::connect(m_sock_fd, (sockaddr *)&m_addr, addr_len) < 0) {
                _ERRNO(errno, _E, "Failed to connect sock_fd: %d for %s",
                                m_sock_fd, get_client_name());
                return false;