提交 b1473342 编写于 作者: S Shengliang Guan

TD-1057

上级 95f76406
......@@ -360,7 +360,7 @@ find_shared_library_fullname ()
ungetc (c, fp);
shared_library_fullname = NULL; size = 0;
len = taosGetline(&shared_library_fullname, &size, fp);
len = getline(&shared_library_fullname, &size, fp);
if (len >= 0)
{
/* Success: filled shared_library_fullname. */
......
......@@ -912,7 +912,7 @@ int tscBuildQueryMsg(SSqlObj *pSql, SSqlInfo *pInfo) {
pSql->cmd.msgType = TSDB_MSG_TYPE_QUERY;
pQueryMsg->head.contLen = htonl(msgLen);
assert(msgLen + minMsgSize() <= pCmd->allocSize);
assert(msgLen + minMsgSize() <= (int32_t)pCmd->allocSize);
return TSDB_CODE_SUCCESS;
}
......
......@@ -426,7 +426,7 @@ TAOS_RES *taos_consume(TAOS_SUB *tsub) {
size_t size = taosArrayGetSize(pSub->progress) * sizeof(STableIdInfo);
size += sizeof(SQueryTableMsg) + 4096;
tscAllocPayload(&pSql->cmd, size);
tscAllocPayload(&pSql->cmd, (int)size);
for (int retry = 0; retry < 3; retry++) {
tscRemoveFromSqlList(pSql);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册