diff --git a/src/client/src/tscSql.c b/src/client/src/tscSql.c index 4b78c5ed7a07779f735089c1b029f58dda32afce..e4344b4b10b172449e45ba369787899a375f82d1 100644 --- a/src/client/src/tscSql.c +++ b/src/client/src/tscSql.c @@ -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) { diff --git a/src/system/detail/src/mgmtShell.c b/src/system/detail/src/mgmtShell.c index 50d972d6e0600e05a1b4fa8ff12f8aff3b581119..2872f5e7cac3f74a66d4853bc7c97def70563664 100644 --- a/src/system/detail/src/mgmtShell.c +++ b/src/system/detail/src/mgmtShell.c @@ -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 { diff --git a/src/util/src/tsched.c b/src/util/src/tsched.c index 4eefd2ad958cd6424cb92b4199d0c21821b56716..56d16eeb7196bebaf871615ed93f06b424079180 100644 --- a/src/util/src/tsched.c +++ b/src/util/src/tsched.c @@ -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) {