[CRIU] [PATCH 3/5] mount: fix typos in root_path_from_parent

Pavel Tikhomirov ptikhomirov at virtuozzo.com
Tue Sep 11 11:09:04 MSK 2018


colon operators are there obviously by mistake instead of semicolons

Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
 criu/mount.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/criu/mount.c b/criu/mount.c
index 549039978..781870eea 100644
--- a/criu/mount.c
+++ b/criu/mount.c
@@ -834,8 +834,8 @@ static int root_path_from_parent(struct mount_info *m, char *buf, int size)
 	if (!m->parent)
 		return -1;
 
-	p_len = strlen(m->parent->mountpoint),
-	m_len = strlen(m->mountpoint),
+	p_len = strlen(m->parent->mountpoint);
+	m_len = strlen(m->mountpoint);
 
 	len = snprintf(buf, size, "%s", m->parent->root);
 	if (len >= size)
-- 
2.17.1



More information about the CRIU mailing list