chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b97fcb
)
core: busname_supported() should cache what it detects
author
Johannes Hölzl
<johannes.hoelzl@gmx.de>
Tue, 3 Feb 2015 17:53:31 +0000
(18:53 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 3 Feb 2015 17:53:31 +0000
(18:53 +0100)
Add the missing "static" to actually make this a cache.
src/core/busname.c
patch
|
blob
|
history
diff --git
a/src/core/busname.c
b/src/core/busname.c
index bc3a2bcb784d3f84093c60fa6328121c56d1d7cf..1d77292f9b9d98ec40ee36ed353a9e47bc4439c9 100644
(file)
--- a/
src/core/busname.c
+++ b/
src/core/busname.c
@@
-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)