diff --git a/source/libs/transport/src/trans.c b/source/libs/transport/src/trans.c
index 4c89d02b6c457ac8b80e3e2ed6a29d2899f38464..f5f3b52f50788e84131d8a8101ce7864e7fbdbaa 100644
--- a/source/libs/transport/src/trans.c
+++ b/source/libs/transport/src/trans.c
@@ -13,8 +13,6 @@
* along with this program. If not, see .
*/
-#ifdef USE_UV
-
#include "transComm.h"
void* (*taosInitHandle[])(uint32_t ip, uint32_t port, char* label, int32_t numOfThreads, void* fp, void* shandle) = {
@@ -189,5 +187,3 @@ void rpcCleanup(void) {
return;
}
-
-#endif
diff --git a/source/libs/transport/src/transComm.c b/source/libs/transport/src/transComm.c
index 4c107a88f18d39fb4bebb2f45237a9de669e5db4..0dfc7677b315ea03d66500867fe9bedf26c0cec7 100644
--- a/source/libs/transport/src/transComm.c
+++ b/source/libs/transport/src/transComm.c
@@ -12,7 +12,6 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
-#ifdef USE_UV
#include "transComm.h"
@@ -67,7 +66,7 @@ int32_t transDecompressMsg(char** msg, int32_t len) {
char* buf = taosMemoryCalloc(1, oriLen + sizeof(STransMsgHead));
STransMsgHead* pNewHead = (STransMsgHead*)buf;
- int32_t decompLen = LZ4_decompress_safe(pCont + sizeof(STransCompMsg), pNewHead->content,
+ int32_t decompLen = LZ4_decompress_safe(pCont + sizeof(STransCompMsg), (char*)pNewHead->content,
len - sizeof(STransMsgHead) - sizeof(STransCompMsg), oriLen);
memcpy((char*)pNewHead, (char*)pHead, sizeof(STransMsgHead));
@@ -655,4 +654,3 @@ void transDestoryExHandle(void* handle) {
}
taosMemoryFree(handle);
}
-#endif