diff options
author | Václav Pavlín <vpavlin@redhat.com> | 2012-09-21 12:04:02 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-09-21 16:04:25 +0200 |
commit | 2f29c419b01c104475f04d58a873b181273cfd8b (patch) | |
tree | d5ce4273d97d2f734b01c0efd40b7387c1686b7e | |
parent | e57d4fa35ece7c506e6ed16bb245591252143f9c (diff) |
cgtop: missing '-'
Return codes in systemd are negated and
if (r < 0) if (r == ENOENT)
was never true.
-rw-r--r-- | src/cgtop/cgtop.c | 2 |
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; |