summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorAlok Barsode <alok.barsode@azingo.com>2008-09-03 14:28:38 +0530
committerAlok Barsode <alok.barsode@azingo.com>2008-09-03 14:47:44 +0530
commit6746732b80eb7cf483610dd4c390156f10fb2f3a (patch)
tree84f2eee8fb361548b5dbd793716709a3c8ef9be3 /plugins
parenteff1a4f85337739c295880167b715dc19a6ddff1 (diff)
Fixing service.c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/service.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/service.c b/plugins/service.c
index f0bc4e0b..03820198 100644
--- a/plugins/service.c
+++ b/plugins/service.c
@@ -442,7 +442,7 @@ static DBusMessage *add_service_record(DBusConnection *conn,
return NULL;
sender = dbus_message_get_sender(msg);
- str2ba(adapter->address, &src);
+ str2ba(adapter_get_address(adapter), &src);
err = add_xml_record(conn, sender, &src, record, &handle);
if (err < 0)
return failed_strerror(msg, err);
@@ -463,7 +463,7 @@ static DBusMessage *update_service_record(DBusConnection *conn,
struct adapter *adapter = data;
bdaddr_t src;
- str2ba(adapter->address, &src);
+ str2ba(adapter_get_address(adapter), &src);
return update_xml_record(conn, msg, &src);
}