diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-10-24 15:49:52 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-10-24 15:49:52 +0300 |
commit | a5883ecb1aa94b09bcf0e7ce4184d262027c5939 (patch) | |
tree | 80ce381543b85d61ea54f930a25d08ebabc1291c /src/error.c | |
parent | fffc600099fdd44e485fa4925a599d790424f881 (diff) |
Use g_dbus_send_message instead of dbus_connection_send
Diffstat (limited to 'src/error.c')
-rw-r--r-- | src/error.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/error.c b/src/error.c index 2f5fc7e0..d7c9d3ca 100644 --- a/src/error.c +++ b/src/error.c @@ -27,6 +27,8 @@ #include <config.h> #endif +#include <gdbus.h> + #include "error.h" /* Helper function - internal use only */ @@ -34,7 +36,6 @@ DBusHandlerResult error_common_reply(DBusConnection *conn, DBusMessage *msg, const char *name, const char *descr) { DBusMessage *derr; - dbus_bool_t ret; if (!conn || !msg) return DBUS_HANDLER_RESULT_HANDLED; @@ -43,9 +44,7 @@ DBusHandlerResult error_common_reply(DBusConnection *conn, DBusMessage *msg, if (!derr) return DBUS_HANDLER_RESULT_NEED_MEMORY; - ret = dbus_connection_send(conn, derr, NULL); - - dbus_message_unref(derr); + g_dbus_send_message(conn, derr); return DBUS_HANDLER_RESULT_HANDLED; } |