chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use bus_maybe_send_reply() where applicable
[elogind.git]
/
src
/
core
/
dbus-unit.c
diff --git
a/src/core/dbus-unit.c
b/src/core/dbus-unit.c
index 7c23e1e616274bcb17a4e1897ea541f979421faa..dc7d1f13f03266232dd4578839d08147b92edcff 100644
(file)
--- a/
src/core/dbus-unit.c
+++ b/
src/core/dbus-unit.c
@@
-582,7
+582,7
@@
static DBusHandlerResult bus_unit_message_dispatch(Unit *u, DBusConnection *conn
}
if (reply)
}
if (reply)
- if (!
dbus_connection_send(connection, reply, NULL
))
+ if (!
bus_maybe_send_reply(connection, message, reply
))
goto oom;
return DBUS_HANDLER_RESULT_HANDLED;
goto oom;
return DBUS_HANDLER_RESULT_HANDLED;
@@
-673,7
+673,7
@@
static DBusHandlerResult bus_unit_message_handler(DBusConnection *connection, DB
free(introspection);
free(introspection);
- if (!
dbus_connection_send(connection, reply, NULL
))
+ if (!
bus_maybe_send_reply(connection, message, reply
))
goto oom;
return DBUS_HANDLER_RESULT_HANDLED;
goto oom;
return DBUS_HANDLER_RESULT_HANDLED;
@@
-886,7
+886,7
@@
DBusHandlerResult bus_unit_queue_job(
DBUS_TYPE_INVALID))
goto oom;
DBUS_TYPE_INVALID))
goto oom;
- if (!
dbus_connection_send(connection, reply, NULL
))
+ if (!
bus_maybe_send_reply(connection, message, reply
))
goto oom;
return DBUS_HANDLER_RESULT_HANDLED;
goto oom;
return DBUS_HANDLER_RESULT_HANDLED;