Use struct btd_adapter directly to access path member. --- src/adapter.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/adapter.c b/src/adapter.c index 885d232..2f8c8a3 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -3183,7 +3183,6 @@ done: void adapter_mode_changed(struct btd_adapter *adapter, uint8_t scan_mode) { - const gchar *path = adapter_get_path(adapter); gboolean discoverable, pairable; DBG("old 0x%02x new 0x%02x", adapter->scan_mode, scan_mode); @@ -3218,7 +3217,7 @@ void adapter_mode_changed(struct btd_adapter *adapter, uint8_t scan_mode) ADAPTER_INTERFACE, "Pairable", DBUS_TYPE_BOOLEAN, &pairable); - emit_property_changed(path, + emit_property_changed(adapter->path, ADAPTER_INTERFACE, "Discoverable", DBUS_TYPE_BOOLEAN, &discoverable); -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html