chiark / gitweb /
unit: reduce heap usage for unit objects
[elogind.git] / src / timer.c
index d127a117434a48a607d7d8d88dd6b0fb0e02fd29..87adb29e7ae61ae0e0f9c11c0c6397b9ffad5d7b 100644 (file)
@@ -468,6 +468,7 @@ DEFINE_STRING_TABLE_LOOKUP(timer_base, TimerBase);
 
 const UnitVTable timer_vtable = {
         .suffix = ".timer",
+        .object_size = sizeof(Timer),
         .sections =
                 "Unit\0"
                 "Timer\0"