Merge pull request #956 from taosdata/feature/slguan

remove some warnings
This commit is contained in:
haojun Liao 2019-12-20 11:54:58 +08:00 committed by GitHub
commit 5f6e03a827
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {