summaryrefslogtreecommitdiff
path: root/audio/gateway.c
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2010-12-16 15:58:07 -0200
committerJohan Hedberg <johan.hedberg@nokia.com>2010-12-16 21:45:43 +0200
commit33249f80e69ab30aca70c647199cb88ca58e1bad (patch)
tree5fb9c2826455a59837e299bb7f651877cd600ba9 /audio/gateway.c
parentea30b84b2349c01175ed8700e206bca1e019a635 (diff)
downloadbluez-33249f80e69ab30aca70c647199cb88ca58e1bad.tar.gz
Add btd_error_agent_not_available()
Diffstat (limited to 'audio/gateway.c')
-rw-r--r--audio/gateway.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/audio/gateway.c b/audio/gateway.c
index 655047d2d..43a4b0218 100644
--- a/audio/gateway.c
+++ b/audio/gateway.c
@@ -369,8 +369,7 @@ static DBusMessage *ag_connect(DBusConnection *conn, DBusMessage *msg,
int err;
if (!gw->agent)
- return g_dbus_create_error(msg, ERROR_INTERFACE
- ".Failed", "Agent not assigned");
+ return btd_error_agent_not_available(msg);
err = get_records(au_dev);
if (err < 0)