remove some warnings
This commit is contained in:
parent
682bcb2d6d
commit
0f06cbc5fd
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue