Change-Id: I022f15c8f8a0c9c7fa3afe835c78010b9cece3d2
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
if (list) {
ret = DPM_RESULT_SUCCESS;
for (; list; list = list->next, i++) {
- memset(device_list.addresses[i].addr, 0, BT_ADDRESS_STRING_SIZE);
+ memset(device_list.addresses[i].addr, 0, BLUETOOTH_ADDRESS_LENGTH);
_bt_convert_addr_string_to_type(device_list.addresses[i].addr, list->data);
}
device_list.count = g_slist_length(policy_table[DPM_POLICY_BLUETOOTH_DEVICES_BLACKLIST].list);
void _bt_init_request_id(void)
{
assigned_id = 0;
- memset(req_id_used, 0x00, BT_REQUEST_ID_RANGE_MAX);
+ memset(req_id_used, 0x00, sizeof(req_id_used));
}
int _bt_assign_request_id(void)
void _bt_init_request_id(void)
{
assigned_id = 0;
- memset(req_id_used, 0x00, BT_REQUEST_ID_RANGE_MAX);
+ memset(req_id_used, 0x00, sizeof(req_id_used));
}
int _bt_assign_request_id(void)