projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ca6bd9
)
core/unit: use UNIT_IS_INACTIVE_OR_FAILED at one more place
author
Mike Yuan
<me@yhndnzj.com>
Fri, 19 Apr 2024 02:07:13 +0000
(10:07 +0800)
committer
Mike Yuan
<me@yhndnzj.com>
Fri, 19 Apr 2024 02:08:35 +0000
(10:08 +0800)
src/core/unit.c
patch
|
blob
|
history
diff --git
a/src/core/unit.c
b/src/core/unit.c
index f26c1c248eed0dcd8623481b71760948fdd386f5..15285a3ac4cdc1f9356f07dde87936cd7b7d726e 100644
(file)
--- a/
src/core/unit.c
+++ b/
src/core/unit.c
@@
-467,7
+467,7
@@
bool unit_may_gc(Unit *u) {
break;
case COLLECT_INACTIVE_OR_FAILED:
- if (!
IN_SET(state, UNIT_INACTIVE, UNIT_FAILED
))
+ if (!
UNIT_IS_INACTIVE_OR_FAILED(state
))
return false;
break;