From 3721da020d997c699bce98a598643c6feaea50e6 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Fri, 24 Dec 2021 15:53:05 +0800 Subject: [PATCH] get rid of compile warning --- include/dnode/vnode/vnode.h | 4 ++-- source/dnode/vnode/impl/src/vnodeRequest.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/dnode/vnode/vnode.h b/include/dnode/vnode/vnode.h index e708d7b545..812f313e71 100644 --- a/include/dnode/vnode/vnode.h +++ b/include/dnode/vnode/vnode.h @@ -246,8 +246,8 @@ static FORCE_INLINE void vnodeSetCreateNtbReq(SVnodeReq *pReq, char *name, uint3 pReq->ctReq.ntbCfg.pSchema = pSchema; } -int vnodeBuildReq(void **buf, const SVnodeReq *pReq, uint8_t type); -void *vnodeParseReq(void *buf, SVnodeReq *pReq, uint8_t type); +int vnodeBuildReq(void **buf, const SVnodeReq *pReq, tmsg_t type); +void *vnodeParseReq(void *buf, SVnodeReq *pReq, tmsg_t type); /* ------------------------ FOR COMPILE ------------------------ */ diff --git a/source/dnode/vnode/impl/src/vnodeRequest.c b/source/dnode/vnode/impl/src/vnodeRequest.c index 545d89ebb7..efbba6352f 100644 --- a/source/dnode/vnode/impl/src/vnodeRequest.c +++ b/source/dnode/vnode/impl/src/vnodeRequest.c @@ -18,7 +18,7 @@ static int vnodeBuildCreateTableReq(void **buf, const SVCreateTableReq *pReq); static void *vnodeParseCreateTableReq(void *buf, SVCreateTableReq *pReq); -int vnodeBuildReq(void **buf, const SVnodeReq *pReq, uint8_t type) { +int vnodeBuildReq(void **buf, const SVnodeReq *pReq, tmsg_t type) { int tsize = 0; tsize += taosEncodeFixedU64(buf, pReq->ver); @@ -36,7 +36,7 @@ int vnodeBuildReq(void **buf, const SVnodeReq *pReq, uint8_t type) { return tsize; } -void *vnodeParseReq(void *buf, SVnodeReq *pReq, uint8_t type) { +void *vnodeParseReq(void *buf, SVnodeReq *pReq, tmsg_t type) { buf = taosDecodeFixedU64(buf, &(pReq->ver)); switch (type) {