!1683 修复变量数据类型不匹配问题

Merge pull request !1683 from mayongzhi/master
This commit is contained in:
openharmony_ci 2024-11-18 03:14:11 +00:00 committed by Gitee
commit 564c417fd3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 2 deletions

View File

@ -398,7 +398,7 @@ bool HttpExec::GetCurlDataFromHandle(CURL *handle, RequestContext *context, CURL
double HttpExec::GetTimingFromCurl(CURL *handle, CURLINFO info)
{
time_t timing;
curl_off_t timing;
CURLcode result = curl_easy_getinfo(handle, info, &timing);
if (result != CURLE_OK) {
NETSTACK_LOGE("Failed to get timing: %{public}d, %{public}s", info, curl_easy_strerror(result));

View File

@ -613,7 +613,7 @@ bool HttpClientTask::ProcessResponseCode()
double HttpClientTask::GetTimingFromCurl(CURL *handle, CURLINFO info) const
{
time_t timing;
curl_off_t timing;
CURLcode result = curl_easy_getinfo(handle, info, &timing);
if (result != CURLE_OK) {
NETSTACK_LOGE("Failed to get timing: %{public}d, %{public}s", info, curl_easy_strerror(result));