未验证 提交 5f6e03a8 编写于 作者: H haojun Liao 提交者: GitHub

Merge pull request #956 from taosdata/feature/slguan

remove some warnings
......@@ -28,6 +28,7 @@
#include "tsocket.h"
#include "ttimer.h"
#include "tutil.h"
#include "ihash.h"
TAOS *taos_connect_imp(const char *ip, const char *user, const char *pass, const char *db, uint16_t port,
void (*fp)(void *, TAOS_RES *, int), void *param, void **taos) {
......
......@@ -721,7 +721,7 @@ int mgmtProcessAlterUserMsg(char *pMsg, int msgLen, SConnObj *pConn) {
if (hasRight) {
memset(pUser->pass, 0, sizeof(pUser->pass));
taosEncryptPass(pAlter->pass, strlen(pAlter->pass), pUser->pass);
taosEncryptPass((uint8_t*)pAlter->pass, strlen(pAlter->pass), pUser->pass);
code = mgmtUpdateUser(pUser);
mLPrint("user:%s password is altered by %s, code:%d", pAlter->user, pConn->pUser->user, code);
} else {
......
......@@ -145,6 +145,8 @@ void *taosProcessSchedQueue(void *param) {
else if (msg.tfp)
(*(msg.tfp))(msg.ahandle, msg.thandle);
}
return NULL;
}
int taosScheduleTask(void *qhandle, SSchedMsg *pMsg) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册