dev_addr += 4;
g_strlcpy(address, dev_addr, sizeof(address));
- while ((pos = strchr(address, '_')) != NULL) {
+ while ((pos = strchr(address, '_')) != NULL)
*pos = ':';
- }
g_strlcpy(device_address, address, BT_ADDRESS_STRING_SIZE);
}
return;
}
- if (!__bt_hid_agent_get_adapter_path(conn, NULL)) {
+ if (!__bt_hid_agent_get_adapter_path(conn, NULL))
__bt_hid_agent_register();
- }
interface_added_sig_id = g_dbus_connection_signal_subscribe(conn,
NULL, BT_MANAGER_INTERFACE, BT_INTERFACES_ADDED, NULL, NULL, 0,