summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-adapter.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-07-26 12:36:19 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-07-26 12:36:19 +0000
commit312e3ea913578a40d78635d5702bedd655501445 (patch)
tree25d0795d8a0a00c248a34bc0cfe793b6da83f77f /hcid/dbus-adapter.c
parentab13e6cdba9c3f58f6772560ab86f5ce4578d5ff (diff)
Fix the other missing storage functions
Diffstat (limited to 'hcid/dbus-adapter.c')
-rw-r--r--hcid/dbus-adapter.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hcid/dbus-adapter.c b/hcid/dbus-adapter.c
index ac0b7bc4..5dc36d43 100644
--- a/hcid/dbus-adapter.c
+++ b/hcid/dbus-adapter.c
@@ -464,6 +464,7 @@ static DBusHandlerResult handle_dev_set_discoverable_to_req(DBusConnection *conn
DBusMessage *reply;
DBusError err;
uint32_t timeout;
+ bdaddr_t bdaddr;
dbus_error_init(&err);
dbus_message_get_args(msg, &err,
@@ -490,7 +491,8 @@ static DBusHandlerResult handle_dev_set_discoverable_to_req(DBusConnection *conn
dbus_data->discoverable_timeout = timeout;
- write_discoverable_timeout(dbus_data->address, timeout);
+ str2ba(dbus_data->address, &bdaddr);
+ write_discoverable_timeout(&bdaddr, timeout);
return send_reply_and_unref(conn, reply);
}