diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2010-12-08 18:25:59 -0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2010-12-08 22:54:53 +0200 |
commit | 57c9bf4d916f8fc0ecb8234404a255f0bdee250b (patch) | |
tree | bf75e7602e274d3f1e88c9606cb8ea39857931fc /network | |
parent | 18d001bc2dc9b3aca800215989bc3dbd78d9ff63 (diff) |
convert error to btd_error_not_connected()
Diffstat (limited to 'network')
-rw-r--r-- | network/connection.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/network/connection.c b/network/connection.c index 37a7511b7..d24d96c1e 100644 --- a/network/connection.c +++ b/network/connection.c @@ -123,12 +123,6 @@ static inline DBusMessage *already_connected(DBusMessage *msg) "Device already connected"); } -static inline DBusMessage *not_connected(DBusMessage *msg) -{ - return g_dbus_create_error(msg, ERROR_INTERFACE ".Failed", - "Device not connected"); -} - static inline DBusMessage *not_permited(DBusMessage *msg) { return g_dbus_create_error(msg, ERROR_INTERFACE ".Failed", @@ -460,7 +454,7 @@ static DBusMessage *connection_disconnect(DBusConnection *conn, return connection_cancel(conn, msg, nc); } - return not_connected(msg); + return btd_error_not_connected(msg); } static DBusMessage *connection_get_properties(DBusConnection *conn, |