summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVáclav Pavlín <vpavlin@redhat.com>2012-09-21 12:04:02 +0200
committerLennart Poettering <lennart@poettering.net>2012-09-21 16:04:25 +0200
commit2f29c419b01c104475f04d58a873b181273cfd8b (patch)
treed5ce4273d97d2f734b01c0efd40b7387c1686b7e /src
parente57d4fa35ece7c506e6ed16bb245591252143f9c (diff)
cgtop: missing '-'
Return codes in systemd are negated and if (r < 0) if (r == ENOENT) was never true.
Diffstat (limited to 'src')
-rw-r--r--src/cgtop/cgtop.c2
1 files changed, 1 insertions, 1 deletions
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;