[CRIU] [PATCH 6/7] mount: mnt_depth -- make it unsigned
Cyrill Gorcunov
gorcunov at openvz.org
Thu Sep 3 03:05:13 PDT 2015
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
mount.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/mount.c b/mount.c
index 47786a655fda..776dbbfe19f9 100644
--- a/mount.c
+++ b/mount.c
@@ -385,9 +385,9 @@ static struct mount_info *mnt_build_ids_tree(struct mount_info *list)
return root;
}
-static int mnt_depth(struct mount_info *m)
+static unsigned int mnt_depth(struct mount_info *m)
{
- int depth = 0;
+ unsigned int depth = 0;
char *c;
for (c = m->mountpoint; *c != '\0'; c++) {
@@ -418,7 +418,7 @@ static void mnt_resort_siblings(struct mount_info *tree)
pr_info("\tResorting siblings on %d\n", tree->mnt_id);
while (!list_empty(&tree->children)) {
- int depth;
+ unsigned int depth;
m = list_first_entry(&tree->children, struct mount_info, siblings);
list_del(&m->siblings);
--
2.4.3
More information about the CRIU
mailing list