chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
unit: reduce heap usage for unit objects
[elogind.git]
/
src
/
target.c
diff --git
a/src/target.c
b/src/target.c
index 54c34daa0de6c4e9431bbcad44d90613ce282119..b774cfbc3342adc60a33a63c534f54f8b986985d 100644
(file)
--- a/
src/target.c
+++ b/
src/target.c
@@
-199,6
+199,11
@@
DEFINE_STRING_TABLE_LOOKUP(target_state, TargetState);
const UnitVTable target_vtable = {
.suffix = ".target",
+ .object_size = sizeof(Target),
+ .sections =
+ "Unit\0"
+ "Target\0"
+ "Install\0",
.load = target_load,
.coldplug = target_coldplug,