Fix the build warnings and typo error
[platform/core/connectivity/bluetooth-frwk.git] / bt-service-adaptation / services / gatt / bt-service-gatt.c
index 8e5db8e..310387b 100644 (file)
@@ -1661,13 +1661,13 @@ static void __bt_handle_gatt_server_acquire_write_requested(event_gatts_srvc_acq
        int result = BLUETOOTH_ERROR_NONE;
        struct gatt_server_req_info *req_info = NULL;
        bluetooth_device_address_t dev_addr;
-       char  adress[BT_ADDRESS_STRING_SIZE] = {'/0',};
+       char address[BT_ADDRESS_STRING_SIZE] = { 0 };
 
        BT_INFO("GATT Server ACQUIRE  Write Req Connection ID: [%d]", event->attr_trans.conn_id);
        BT_INFO("GATT Server  ACQUIRE Write Req Transaction ID:[%d]", event->attr_trans.trans_id);
        BT_INFO("GATT Server ACQUIRE Write Req Attribute Handle: [%d]", event->attr_trans.attr_handle);
 
-       //adress = g_malloc0(BT_ADDRESS_STRING_SIZE);
+       //address = g_malloc0(BT_ADDRESS_STRING_SIZE);
        memcpy(dev_addr.addr, event->address.addr, 6);
 
        req_info = g_new0(struct gatt_server_req_info, 1);
@@ -1677,15 +1677,15 @@ static void __bt_handle_gatt_server_acquire_write_requested(event_gatts_srvc_acq
        req_info->request_type = BLUETOOTH_GATT_REQUEST_TYPE_ACQUIRE_WRITE;
        gatt_server_requests = g_slist_append(gatt_server_requests, req_info);
 
-       _bt_convert_addr_type_to_string(adress,
+       _bt_convert_addr_type_to_string(address,
                        (unsigned char *)dev_addr.addr);
 
        param = g_variant_new("(iiiiiis)", result,
                        event->attr_trans.conn_id,
                        event->attr_trans.trans_id,
                        event->attr_trans.attr_handle,
-                       event->mtu, event->attr_trans.offset, adress);
-       BT_INFO("GATT Server ACQUIRE Write Req Attribute remote adress : [%s]", adress);
+                       event->mtu, event->attr_trans.offset, address);
+       BT_INFO("GATT Server ACQUIRE Write Req Attribute remote address : [%s]", address);
 
        _bt_send_event(BT_GATT_SERVER_EVENT,
                        BLUETOOTH_EVENT_GATT_SERVER_ACQUIRE_WRITE,