[2/9] kcmp: Beautify kcmp-ids.h

Submitted by Cyrill Gorcunov on June 20, 2018, 12:01 p.m.

Details

Message ID 20180620120143.8604-3-gorcunov@gmail.com
State New
Series "epoll: Add support for duped targets"
Headers show

Commit Message

Cyrill Gorcunov June 20, 2018, 12:01 p.m.
From: Cyrill Gorcunov <gorcunov@openvz.org>

 - aling memebers
 - use pid_t type for PIDs

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
---
 criu/include/kcmp-ids.h | 23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

Patch hide | download patch | download mbox

diff --git a/criu/include/kcmp-ids.h b/criu/include/kcmp-ids.h
index ac6d84a2bb6a..37e2398db206 100644
--- a/criu/include/kcmp-ids.h
+++ b/criu/include/kcmp-ids.h
@@ -2,27 +2,28 @@ 
 #define __CR_KCMP_IDS_H__
 
 #include <stdint.h>
+#include <sys/types.h>
 
 #include "kcmp.h"
 
 struct kid_tree {
-	struct rb_root root;
-	unsigned kcmp_type;
-	unsigned long subid;
+	struct rb_root		root;
+	unsigned int		kcmp_type;
+	unsigned long		subid;
 
 };
 
-#define DECLARE_KCMP_TREE(name, type)	\
-	struct kid_tree name = {	\
-		.root = RB_ROOT,	\
-		.kcmp_type = type,	\
-		.subid = 1,		\
+#define DECLARE_KCMP_TREE(name, type)		\
+	struct kid_tree name = {		\
+		.root		= RB_ROOT,	\
+		.kcmp_type	= type,		\
+		.subid		= 1,		\
 	}
 
 struct kid_elem {
-	int pid;
-	unsigned genid;
-	unsigned idx;
+	pid_t		pid;
+	unsigned int	genid;
+	unsigned int	idx;
 };
 
 extern uint32_t kid_generate_gen(struct kid_tree *tree,