[CRIU] [PATCH] Remove freshly introduced uintX
Cyrill Gorcunov
gorcunov at openvz.org
Thu Jul 19 04:54:16 EDT 2012
Pavel, I guess this would worth to have, no?
Cyrill
-------------- next part --------------
>From 6bb97532e00778dd534b402efc06ba84d56fbbe6 Mon Sep 17 00:00:00 2001
From: Cyrill Gorcunov <gorcunov at openvz.org>
Date: Thu, 19 Jul 2012 12:52:38 +0400
Subject: [PATCH] Use u32 instead of uint32_t
We have own definitions for types with
predefined bytes len. So use them to
be consistent.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
include/proc_parse.h | 8 ++++----
include/restorer.h | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/include/proc_parse.h b/include/proc_parse.h
index db699a6..03b0ae8 100644
--- a/include/proc_parse.h
+++ b/include/proc_parse.h
@@ -83,10 +83,10 @@ struct proc_status_creds {
unsigned int uids[4];
unsigned int gids[4];
- uint32_t cap_inh[PROC_CAP_SIZE];
- uint32_t cap_prm[PROC_CAP_SIZE];
- uint32_t cap_eff[PROC_CAP_SIZE];
- uint32_t cap_bnd[PROC_CAP_SIZE];
+ u32 cap_inh[PROC_CAP_SIZE];
+ u32 cap_prm[PROC_CAP_SIZE];
+ u32 cap_eff[PROC_CAP_SIZE];
+ u32 cap_bnd[PROC_CAP_SIZE];
};
struct mount_info {
diff --git a/include/restorer.h b/include/restorer.h
index 1be2168..01fe1fa 100644
--- a/include/restorer.h
+++ b/include/restorer.h
@@ -88,10 +88,10 @@ struct task_restore_core_args {
struct itimerval itimers[3];
CredsEntry creds;
- uint32_t cap_inh[CR_CAP_SIZE];
- uint32_t cap_prm[CR_CAP_SIZE];
- uint32_t cap_eff[CR_CAP_SIZE];
- uint32_t cap_bnd[CR_CAP_SIZE];
+ u32 cap_inh[CR_CAP_SIZE];
+ u32 cap_prm[CR_CAP_SIZE];
+ u32 cap_eff[CR_CAP_SIZE];
+ u32 cap_bnd[CR_CAP_SIZE];
MmEntry mm;
u64 mm_saved_auxv[AT_VECTOR_SIZE];
--
1.7.7.6
More information about the CRIU
mailing list