Fix the build warnings and typo error
[platform/core/connectivity/bluetooth-frwk.git] / bt-api / bt-gatt-service.c
index c819c59..4d30589 100644 (file)
@@ -3251,7 +3251,7 @@ static gboolean bluetooth_gatt_server_acquire_channel_write_cb(GIOChannel *gio,
 
        bluetooth_gatt_server_acquire_write_info_t *write_data =  (bluetooth_gatt_server_acquire_write_info_t*)data;
 
-       BT_INFO("FD io write data  received  remote adress  [%s]\n", write_data->adress);
+       BT_INFO("FD io write data  received  remote adress  [%s]\n", write_data->address);
 
        if (cond & G_IO_IN) {
                GIOStatus status = G_IO_STATUS_NORMAL;
@@ -3296,7 +3296,7 @@ static gboolean bluetooth_gatt_server_acquire_channel_write_cb(GIOChannel *gio,
                        write_info.need_resp = false;
                        write_info.attribute_handle = write_data->attribute_handle;
                        //memcpy()
-                       _bt_convert_addr_string_to_type(write_info.device_address.addr,  write_data->adress);
+                       _bt_convert_addr_string_to_type(write_info.device_address.addr,  write_data->address);
                        write_info.connection_id = write_data->connection_id;
                        write_info.offset = write_data->offset;
                        write_info.request_id = -2;
@@ -3383,9 +3383,9 @@ void  bluetooth_gatt_server_send_acquire_write_response(GVariant * parameters)
        write_info->connection_id  = tran_id;
        write_info->offset = offset;
 
-        memcpy(write_info->adress,  addr ,  BLUETOOTH_ADDRESS_STRING_LENGTH);
+        memcpy(write_info->address,  addr ,  BLUETOOTH_ADDRESS_STRING_LENGTH);
 
-       BT_INFO("FD read %d   remote adress  [%s ] \n", pipefd[0], addr);
+       BT_INFO("FD read %d   remote address  [%s ] \n", pipefd[0], addr);
 
 
        channel = g_io_channel_unix_new(pipefd[0]);