mvn spotless:apply
diff --git a/cpp/src/cwrapper/tsfile_cwrapper.cc b/cpp/src/cwrapper/tsfile_cwrapper.cc index f131460..e6ecef2 100644 --- a/cpp/src/cwrapper/tsfile_cwrapper.cc +++ b/cpp/src/cwrapper/tsfile_cwrapper.cc
@@ -1179,8 +1179,7 @@ free(devices); } -ERRNO tsfile_reader_get_all_devices(TsFileReader reader, - DeviceID** out_devices, +ERRNO tsfile_reader_get_all_devices(TsFileReader reader, DeviceID** out_devices, uint32_t* out_length) { if (reader == nullptr || out_devices == nullptr || out_length == nullptr) { return common::E_INVALID_ARG; @@ -1192,8 +1191,7 @@ if (ids.empty()) { return common::E_OK; } - auto* arr = static_cast<DeviceID*>( - malloc(sizeof(DeviceID) * ids.size())); + auto* arr = static_cast<DeviceID*>(malloc(sizeof(DeviceID) * ids.size())); if (arr == nullptr) { return common::E_OOM; }
diff --git a/cpp/src/cwrapper/tsfile_cwrapper.h b/cpp/src/cwrapper/tsfile_cwrapper.h index 29bb410..6c0e6d2 100644 --- a/cpp/src/cwrapper/tsfile_cwrapper.h +++ b/cpp/src/cwrapper/tsfile_cwrapper.h
@@ -450,8 +450,7 @@ * @param out_devices [out] Allocated array; caller frees with * tsfile_free_device_id_array. */ -ERRNO tsfile_reader_get_all_devices(TsFileReader reader, - DeviceID** out_devices, +ERRNO tsfile_reader_get_all_devices(TsFileReader reader, DeviceID** out_devices, uint32_t* out_length); void tsfile_free_device_id_array(DeviceID* devices, uint32_t length);