Refactor coding style
authorChanggyu Choi <changyu.choi@samsung.com>
Fri, 22 Jan 2021 05:43:24 +0000 (14:43 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Fri, 22 Jan 2021 05:43:27 +0000 (14:43 +0900)
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
common/socket/abstract_socket.hh
common/socket/client_socket.hh
common/socket/data_socket.hh
common/socket/server_socket.hh

index 79ec5e6..691139c 100644 (file)
@@ -14,6 +14,9 @@
  * limitations under the License.
  */
 
+#ifndef COMMON_ABSTRACT_SOCKET_HH_
+#define COMMON_ABSTRACT_SOCKET_HH_
+
 #include <sys/socket.h>
 #include <sys/types.h>
 #include <sys/un.h>
@@ -44,3 +47,5 @@ class AbstractSocket {
 };
 
 }  // namespace pkgmgr_common
+
+#endif  // COMMON_ABSTRACT_SOCKET_HH_
index 4ab4fbc..feec9f3 100644 (file)
@@ -14,7 +14,9 @@
  * limitations under the License.
  */
 
-#pragma once
+#ifndef COMMON_CLIENT_SOCKET_HH_
+#define COMMON_CLIENT_SOCKET_HH_
+
 #include <sys/socket.h>
 #include <sys/types.h>
 #include <sys/un.h>
@@ -35,3 +37,5 @@ class ClientSocket: public AbstractSocket {
 };
 
 }  // namespace pkgmgr_common
+
+#endif  // COMMON_CLIENT_SOCKET_HH_
index ce5fc48..c28d23c 100644 (file)
@@ -14,7 +14,9 @@
  * limitations under the License.
  */
 
-#pragma once
+#ifndef COMMON_DATA_SOCKET_HH_
+#define COMMON_DATA_SOCKET_HH_
+
 #include <sys/socket.h>
 #include <sys/types.h>
 #include <sys/un.h>
@@ -35,3 +37,5 @@ class DataSocket: public AbstractSocket {
 };
 
 }  // namespace pkgmgr_common
+
+#endif  // COMMON_DATA_SOCKET_HH_
index 79c4b02..bc7e713 100644 (file)
@@ -14,6 +14,9 @@
  * limitations under the License.
  */
 
+#ifndef COMMON_SERVER_SOCKET_HH_
+#define COMMON_SERVER_SOCKET_HH_
+
 #include <sys/socket.h>
 #include <sys/types.h>
 #include <sys/un.h>
@@ -38,3 +41,5 @@ class ServerSocket: public AbstractSocket {
 };
 
 }  // namespace pkgmgr_common
+
+#endif  // COMMON_SERVER_SOCKET_HH_