[CRIU] [PATCH 1/2] soccr.h: use uint32_t instead of __u32

Dmitry Safonov dsafonov at virtuozzo.com
Fri Apr 28 11:28:37 PDT 2017


As uint32_t already has occupied the header, use it for all 32-bit
unsigns. That will allow to drop additional include <linux/types.h>.

Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
 soccr/soccr.h | 36 ++++++++++++++++++------------------
 1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/soccr/soccr.h b/soccr/soccr.h
index a6562bfb71c2..2957fd6c4abd 100644
--- a/soccr/soccr.h
+++ b/soccr/soccr.h
@@ -72,24 +72,24 @@ union libsoccr_addr {
  * socket and given back into the library in two steps (see below).
  */
 struct libsoccr_sk_data {
-	__u32	state;
-	__u32	inq_len;
-	__u32	inq_seq;
-	__u32	outq_len;
-	__u32	outq_seq;
-	__u32	unsq_len;
-	__u32	opt_mask;
-	__u32	mss_clamp;
-	__u32	snd_wscale;
-	__u32	rcv_wscale;
-	__u32	timestamp;
-
-	__u32	flags; /* SOCCR_FLAGS_... below */
-	__u32	snd_wl1;
-	__u32	snd_wnd;
-	__u32	max_window;
-	__u32	rcv_wnd;
-	__u32	rcv_wup;
+	uint32_t	state;
+	uint32_t	inq_len;
+	uint32_t	inq_seq;
+	uint32_t	outq_len;
+	uint32_t	outq_seq;
+	uint32_t	unsq_len;
+	uint32_t	opt_mask;
+	uint32_t	mss_clamp;
+	uint32_t	snd_wscale;
+	uint32_t	rcv_wscale;
+	uint32_t	timestamp;
+
+	uint32_t	flags; /* SOCCR_FLAGS_... below */
+	uint32_t	snd_wl1;
+	uint32_t	snd_wnd;
+	uint32_t	max_window;
+	uint32_t	rcv_wnd;
+	uint32_t	rcv_wup;
 };
 
 /*
-- 
2.12.2



More information about the CRIU mailing list