diff options
author | Luiz Augusto von Dentz <luiz.dentz@indt.org.br> | 2008-07-01 14:54:17 -0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@indt.org.br> | 2008-07-28 10:31:18 -0300 |
commit | 34f8a76bd5bd24ae1a1594f4d1460df393675ec1 (patch) | |
tree | 0c65e1d8b2d34d978a1b470f661778aa0d110573 /hcid/adapter.c | |
parent | 1ea3f7de314eb0b699cac4b80f5085666c0e6d50 (diff) |
Remove BASE_PATH define.
Diffstat (limited to 'hcid/adapter.c')
-rw-r--r-- | hcid/adapter.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/hcid/adapter.c b/hcid/adapter.c index e79183c9..e08ab300 100644 --- a/hcid/adapter.c +++ b/hcid/adapter.c @@ -828,7 +828,7 @@ static DBusMessage *remove_bonding(DBusConnection *conn, DBusMessage *msg, { struct adapter *adapter = data; struct device *device; - char path[MAX_PATH_LENGTH], filename[PATH_MAX + 1]; + char filename[PATH_MAX + 1]; char *str; bdaddr_t src, dst; GSList *l; @@ -885,15 +885,6 @@ static DBusMessage *remove_bonding(DBusConnection *conn, DBusMessage *msg, hci_close_dev(dev); - if (paired) { - snprintf(path, MAX_PATH_LENGTH, BASE_PATH "/hci%d", - adapter->dev_id); - g_dbus_emit_signal(conn, path, - ADAPTER_INTERFACE, "BondingRemoved", - DBUS_TYPE_STRING, &address, - DBUS_TYPE_INVALID); - } - device = adapter_find_device(adapter, address); if (!device) goto proceed; @@ -1149,7 +1140,7 @@ static void create_bond_req_exit(void *user_data) struct pending_auth_info *auth; char path[MAX_PATH_LENGTH]; - snprintf(path, sizeof(path), "%s/hci%d", BASE_PATH, adapter->dev_id); + snprintf(path, sizeof(path), "/hci%d", adapter->dev_id); debug("CreateConnection requestor exited before bonding was completed"); |