From b2dfdb324f4f885730275d6e48f20f8dc197d00b Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Sat, 20 Feb 2016 14:04:30 +0300 Subject: [PATCH] fix compilation after previous commit Signed-off-by: Pavel Emelyanov --- criu/namespaces.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/criu/namespaces.c b/criu/namespaces.c index c04dacade..bb5b62225 100644 --- a/criu/namespaces.c +++ b/criu/namespaces.c @@ -523,7 +523,7 @@ static unsigned int host_id(unsigned int id, UidGidExtent **map, int n) return map[i]->lower_first + (id - map[i]->first); } - return INVALID_ID; + return -1; } static uid_t host_uid(uid_t uid) @@ -658,7 +658,7 @@ static int check_user_ns(int pid) uid = host_uid(0); gid = host_gid(0); - if (uid == INVALID_ID || gid == INVALID_ID) { + if (uid == -1 || gid == -1) { pr_err("Unable to convert uid or gid\n"); return -1; }