mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-16 13:12:47 +00:00
core: busname_supported() should cache what it detects
Add the missing "static" to actually make this a cache.
This commit is contained in:
committed by
Lennart Poettering
parent
3b97fcbd28
commit
d69a7ceaed
+1
-1
@@ -975,7 +975,7 @@ static int busname_get_timeout(Unit *u, uint64_t *timeout) {
|
||||
}
|
||||
|
||||
static bool busname_supported(Manager *m) {
|
||||
int supported = -1;
|
||||
static int supported = -1;
|
||||
assert(m);
|
||||
|
||||
if (supported < 0)
|
||||
|
||||
Reference in New Issue
Block a user