Fix the svace issues 27/156127/1 accepted/tizen/unified/20171018.062438 submit/tizen/20171017.074221
authorDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 17 Oct 2017 07:39:33 +0000 (16:39 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 17 Oct 2017 07:40:00 +0000 (16:40 +0900)
Change-Id: I1dcfb8bcc689e8aec6c42452f522b83dcdda42dc
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/bluetooth-common.c

index 0cfb1545ed99189b97eb5f5875262b4053c3195d..4631f35d24369954a692c319e719a32172d4dbc8 100644 (file)
@@ -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);