remove some warnings

This commit is contained in:
slguan 2019-12-19 19:13:38 +08:00
parent 682bcb2d6d
commit 0f06cbc5fd
3 changed files with 4 additions and 1 deletions

View File

@ -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) {

View File

@ -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 {

View File

@ -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) {