https://jira.sw.ru/browse/PSBM-75112

Signed-off-by: Cyrill Gorcunov <gorcu...@virtuozzo.com>
---
 crit/crit       | 2 +-
 criu/cr-dedup.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/crit/crit b/crit/crit
index a6a6832..6b42fa2 100755
--- a/crit/crit
+++ b/crit/crit
@@ -217,7 +217,7 @@ files_cache = { }
        for p in ps_img['entries']:
                pid = p['pid']
                vmas = pycriu.images.load(dinf(opts, 'mm-%d.img' % 
pid))['entries'][0]['vmas']
-               pms = pycriu.images.load(dinf(opts, 'pagemap-%d.img' % 
pid))['entries']
+               pms = pycriu.images.load(dinf(opts, 'pagemap-%lu.img' % 
pid))['entries']
 
                print "%d" % pid
                vmi = 0
diff --git a/criu/cr-dedup.c b/criu/cr-dedup.c
index 93af9be..a1b0eff 100644
--- a/criu/cr-dedup.c
+++ b/criu/cr-dedup.c
@@ -13,7 +13,7 @@ static int cr_dedup_one_pagemap(unsigned long id, int flags);
 int cr_dedup(void)
 {
        int close_ret, ret = 0;
-       int id;
+       unsigned long id;
        DIR * dirp;
        struct dirent *ent;
 
-- 
2.7.5

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to