From: Václav Pavlín Date: Fri, 21 Sep 2012 10:04:02 +0000 (+0200) Subject: cgtop: missing '-' X-Git-Tag: v191~19 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=2f29c419b01c104475f04d58a873b181273cfd8b;hp=e57d4fa35ece7c506e6ed16bb245591252143f9c cgtop: missing '-' Return codes in systemd are negated and if (r < 0) if (r == ENOENT) was never true. --- diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index 3756328fa..9eb2d2fde 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;