X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fdbus-snapshot.c;h=9978df60225fee863f259bbf2ddefb20a35497e9;hb=05d3a176239c1dd67863c70a5b79d9bc14144ef6;hp=02cfcb1829a1de854890f2089f329110aef3acf0;hpb=5dd9014faf58bf974352043fbddd3a8e9c3cd9d9;p=elogind.git diff --git a/src/core/dbus-snapshot.c b/src/core/dbus-snapshot.c index 02cfcb182..9978df602 100644 --- a/src/core/dbus-snapshot.c +++ b/src/core/dbus-snapshot.c @@ -44,7 +44,7 @@ BUS_UNIT_INTERFACES_LIST \ "org.freedesktop.systemd1.Snapshot\0" -const char bus_snapshot_interface[] _introspect_("Snapshot") = BUS_SNAPSHOT_INTERFACE; +const char bus_snapshot_interface[] = BUS_SNAPSHOT_INTERFACE; static const BusProperty bus_snapshot_properties[] = { { "Cleanup", bus_property_append_bool, "b", offsetof(Snapshot, cleanup) }, @@ -77,7 +77,7 @@ DBusHandlerResult bus_snapshot_message_handler(Unit *u, DBusConnection *c, DBusM return bus_default_message_handler(c, message, INTROSPECTION, INTERFACES_LIST, bps); } - if (!dbus_connection_send(c, reply, NULL)) + if (!bus_maybe_send_reply(c, message, reply)) return DBUS_HANDLER_RESULT_NEED_MEMORY; return DBUS_HANDLER_RESULT_HANDLED;