[CRIU] [PATCH 06/17] unix: Adjust unix_sk_info members

Cyrill Gorcunov gorcunov at gmail.com
Fri Apr 27 14:34:54 MSK 2018


For readability sake. And use standart uint8_t types.

Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
 criu/sk-unix.c | 32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/criu/sk-unix.c b/criu/sk-unix.c
index db784cc38c9c..23ae798c03a7 100644
--- a/criu/sk-unix.c
+++ b/criu/sk-unix.c
@@ -880,32 +880,32 @@ int fix_external_unix_sockets(void)
 }
 
 struct unix_sk_info {
-	UnixSkEntry *ue;
-	struct list_head list;
-	char *name;
-	char *name_dir;
-	unsigned flags;
-	struct unix_sk_info *peer;
-	struct pprep_head peer_resolve; /* XXX : union with the above? */
-	struct file_desc d;
-	struct list_head connected; /* List of sockets, connected to me */
-	struct list_head node; /* To link in peer's connected list  */
-	struct list_head scm_fles;
+	UnixSkEntry		*ue;
+	struct list_head	list;
+	char			*name;
+	char			*name_dir;
+	unsigned		flags;
+	struct unix_sk_info	*peer;
+	struct pprep_head	peer_resolve; /* XXX : union with the above? */
+	struct file_desc	d;
+	struct list_head	connected; /* List of sockets, connected to me */
+	struct list_head	node; /* To link in peer's connected list  */
+	struct list_head	scm_fles;
 
 	/*
 	 * For DGRAM sockets with queues, we should only restore the queue
 	 * once although it may be open by more than one tid. This is the peer
 	 * that should do the queueing.
 	 */
-	struct unix_sk_info *queuer;
+	struct unix_sk_info	*queuer;
 	/*
 	 * These bits are set by task-owner of this unix_sk_info.
 	 * Another tasks can only read them.
 	 */
-	u8 bound:1;
-	u8 listen:1;
-	u8 is_connected:1;
-	u8 peer_queue_restored:1; /* Set in 1 after we restore peer's queue */
+	uint8_t			bound:1;
+	uint8_t			listen:1;
+	uint8_t			is_connected:1;
+	uint8_t			peer_queue_restored:1; /* Set in 1 after we restore peer's queue */
 };
 
 struct scm_fle {
-- 
2.14.3



More information about the CRIU mailing list