From 57502cd9c0173dd366b0296139836594294e3c63 Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Sun, 31 Jan 2021 21:30:56 +0800 Subject: [PATCH] windows compile --- src/os/src/windows/wSysinfo.c | 2 -- src/util/src/tsocket.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/os/src/windows/wSysinfo.c b/src/os/src/windows/wSysinfo.c index 68dd0a62a1..2c59933365 100644 --- a/src/os/src/windows/wSysinfo.c +++ b/src/os/src/windows/wSysinfo.c @@ -155,8 +155,6 @@ void taosGetDisk() { tsTotalTmpDirGB = (float)(i64TotalBytes / unit); tsAvailTmpDirectorySpace = (float)(i64FreeBytes / unit); } - - return true; } bool taosGetBandSpeed(float *bandSpeedKb) { diff --git a/src/util/src/tsocket.c b/src/util/src/tsocket.c index 3a829a321d..7ccdca0fb1 100644 --- a/src/util/src/tsocket.c +++ b/src/util/src/tsocket.c @@ -483,5 +483,5 @@ int32_t taosCopyFds(SOCKET sfd, int32_t dfd, int64_t len) { leftLen -= readLen; } - return len; + return (int32_t)len; } -- GitLab