summaryrefslogtreecommitdiffstats
path: root/serial/manager.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-06-06 10:20:21 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-06-06 10:20:21 +0000
commitf269e27ce7e39e6484cf02a137dcda7458a7fd85 (patch)
tree6a88312826c2db34034ceca65afa9503a69a4f9e /serial/manager.c
parent5c4f688af6ad797033b233521cd75852602fa93d (diff)
Fix the last remains of sending helpers
Diffstat (limited to 'serial/manager.c')
-rw-r--r--serial/manager.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/serial/manager.c b/serial/manager.c
index a9bc0968..64f2203a 100644
--- a/serial/manager.c
+++ b/serial/manager.c
@@ -234,7 +234,8 @@ static void open_notify(int fd, int err, struct pending_connect *pc)
dbus_message_append_args(reply,
DBUS_TYPE_STRING, &pc->dev,
DBUS_TYPE_INVALID);
- send_message_and_unref(pc->conn, reply);
+ dbus_connection_send(pc->conn, reply, NULL);
+ dbus_message_unref(reply);
/* Send the D-Bus signal */
dbus_connection_emit_signal(pc->conn, SERIAL_MANAGER_PATH,
@@ -453,7 +454,8 @@ static DBusMessage *create_channel_port(DBusConnection *conn,
dbus_message_append_args(reply,
DBUS_TYPE_STRING, &ppath,
DBUS_TYPE_INVALID);
- send_message_and_unref(conn, reply);
+ dbus_connection_send(conn, reply, NULL);
+ dbus_message_unref(reply);
dbus_connection_emit_signal(conn, SERIAL_MANAGER_PATH,
SERIAL_MANAGER_INTERFACE, "PortCreated" ,