[07/13] image-desc: Use unsigned for mountpoints

Submitted by Cyrill Gorcunov on Oct. 19, 2017, 9:59 p.m.

Details

Message ID 1508450384-29215-8-git-send-email-gorcunov@openvz.org
State New
Series "Clean up image format and fix anon shmem bits strip"
Headers show

Commit Message

Cyrill Gorcunov Oct. 19, 2017, 9:59 p.m.
Just as we declare it in ns_id structure.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
---
 criu/image-desc.c | 2 +-
 criu/mount.c      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/criu/image-desc.c b/criu/image-desc.c
index d3615d8a7882..b5b55941d66f 100644
--- a/criu/image-desc.c
+++ b/criu/image-desc.c
@@ -67,7 +67,7 @@  struct cr_fd_desc_tmpl imgset_template[CR_FD_MAX] = {
 	FD_ENTRY(REMAP_FPATH,	"remap-fpath"),
 	FD_ENTRY_F(GHOST_FILE,	"ghost-file-%x", O_NOBUF),
 	FD_ENTRY(TCP_STREAM,	"tcp-stream-%x"),
-	FD_ENTRY(MNTS,		"mountpoints-%d"),
+	FD_ENTRY(MNTS,		"mountpoints-%u"),
 	FD_ENTRY(NETDEV,	"netdev-%d"),
 	FD_ENTRY(NETNS,		"netns-%d"),
 	FD_ENTRY_F(IFADDR,	"ifaddr-%d", O_NOBUF),
diff --git a/criu/mount.c b/criu/mount.c
index 22497f52e067..c48612032708 100644
--- a/criu/mount.c
+++ b/criu/mount.c
@@ -1439,7 +1439,7 @@  static int dump_mnt_ns(struct ns_id *ns, struct mount_info *pms)
 	struct mount_info *pm;
 	int ret = -1;
 	struct cr_img *img;
-	int ns_id = ns->id;
+	unsigned int ns_id = ns->id;
 
 	pr_info("Dumping mountpoints\n");
 	img = open_image(CR_FD_MNTS, O_DUMP, ns_id);