From: DoHyun Pyun Date: Tue, 17 Oct 2017 07:39:33 +0000 (+0900) Subject: Fix the svace issues X-Git-Tag: submit/tizen/20171017.074221^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fea05b74e2dca2653e57229dba221d2679da2bc4;p=platform%2Fcore%2Fapi%2Fbluetooth.git Fix the svace issues Change-Id: I1dcfb8bcc689e8aec6c42452f522b83dcdda42dc Signed-off-by: DoHyun Pyun --- diff --git a/src/bluetooth-common.c b/src/bluetooth-common.c index 0cfb154..4631f35 100644 --- a/src/bluetooth-common.c +++ b/src/bluetooth-common.c @@ -2361,9 +2361,9 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us #else bt_gatt_indicate_confirm_t *confrim_status = param->param_data; bt_gatt_server_notification_sent_cb cb; - void *user_data = NULL; + void *local_user_data = NULL; cb = __bt_gatt_attribute_get_notification_completed_cb(confrim_status->service_handle, - confrim_status->att_handle, &user_data); + confrim_status->att_handle, &local_user_data); BT_INFO("BLUETOOTH_EVENT_GATT_SERVER_NOTIFICATION_COMPLETED"); if (cb == NULL) @@ -2371,7 +2371,7 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us cb(_bt_get_error_code(param->result), confrim_status->address, confrim_status->service_handle, - confrim_status->att_handle, confrim_status->complete, user_data); + confrim_status->att_handle, confrim_status->complete, local_user_data); #endif break; } @@ -2747,7 +2747,7 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us case BLUETOOTH_PBAP_PHONEBOOK_SEARCH: if (TIZEN_PROFILE_WEARABLE_IVI) { bt_pbap_list_vcards_cb cb = bt_event_slot_container[event_index].callback; - void *user_data = bt_event_slot_container[event_index].user_data; + void *local_user_data = bt_event_slot_container[event_index].user_data; bt_pbap_phonebook_search_list_t *vc_list = (bt_pbap_phonebook_search_list_t *)(param->param_data); bt_pbap_vcard_info_s *vcard_info = NULL; @@ -2760,7 +2760,7 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us _bt_convert_address_to_string(&device_addr, &vc_list->btaddr); cb(_bt_get_error_code(param->result), device_addr, (const bt_pbap_vcard_info_s *)vcard_info, vc_list->length, - user_data); + local_user_data); if (device_addr != NULL) free(device_addr);