From 2f29c419b01c104475f04d58a873b181273cfd8b Mon Sep 17 00:00:00 2001 From: Václav Pavlín Date: Fri, 21 Sep 2012 12:04:02 +0200 Subject: cgtop: missing '-' Return codes in systemd are negated and if (r < 0) if (r == ENOENT) was never true. --- src/cgtop/cgtop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index 3756328fa7..9eb2d2fdeb 100644 --- a/src/cgtop/cgtop.c +++ b/src/cgtop/cgtop.c @@ -300,7 +300,7 @@ static int refresh_one( r = cg_enumerate_subgroups(controller, path, &d); if (r < 0) { - if (r == ENOENT) + if (r == -ENOENT) return 0; return r; -- cgit v1.2.3-54-g00ecf