[CRIU] [PATCH 15/23] cr: use unsigned long type for integers representing a virtual address

Alexander Kartashov alekskartashov at parallels.com
Mon Jan 14 02:25:57 EST 2013


This patch is intended to reduce the usage of the macro P() since
integer size mismatches sometimes may be fixed by this type generalization.

Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
---
 cr-restore.c |    2 +-
 proc_parse.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cr-restore.c b/cr-restore.c
index 1d23d3e..18977af 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -277,7 +277,7 @@ static int restore_priv_vma_content(pid_t pid)
 	 * Read page contents.
 	 */
 	while (1) {
-		u64 va, page_offset;
+		unsigned long va, page_offset;
 		char buf[PAGE_SIZE];
 		void *p;
 
diff --git a/proc_parse.c b/proc_parse.c
index 8a81179..df32317 100644
--- a/proc_parse.c
+++ b/proc_parse.c
@@ -170,7 +170,7 @@ static int is_anon_shmem_map(dev_t dev)
 int parse_smaps(pid_t pid, struct list_head *vma_area_list, bool use_map_files)
 {
 	struct vma_area *vma_area = NULL;
-	u64 start, end, pgoff;
+	unsigned long start, end, pgoff;
 	unsigned long ino;
 	char r, w, x, s;
 	int dev_maj, dev_min;
-- 
1.7.10.4



More information about the CRIU mailing list