未验证 提交 f518aa96 编写于 作者: 涛思数据(TDengine)'s avatar 涛思数据(TDengine) 提交者: GitHub

Update tnettest.c

上级 f4fad0c0
......@@ -364,7 +364,7 @@ static int32_t taosNetCheckRpc(const char* serverFqdn, uint16_t port, uint16_t p
reqMsg.code = 0;
reqMsg.handle = NULL; // rpc handle returned to app
reqMsg.ahandle = NULL; // app handle set by client
tstrncpy(reqMsg.pCont, "nettest", sizeof(reqMsg.pCont));
tstrncpy((char*)reqMsg.pCont, "nettest", pkgLen);
rpcSendRecv(pRpcConn, &epSet, &reqMsg, &rspMsg);
......@@ -608,8 +608,8 @@ static void taosNetCheckSpeed(char *host, int32_t port, int32_t pkgLen,
reqMsg.code = 0;
reqMsg.handle = NULL; // rpc handle returned to app
reqMsg.ahandle = NULL; // app handle set by client
tstrncpy(reqMsg.pCont, "nettest speed", sizeof(reqMsg.pCont));
tstrncpy((char*)reqMsg.pCont, "nettest speed", pkgLen);
rpcSendRecv(pRpcConn, &epSet, &reqMsg, &rspMsg);
int code = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册