新增告警清理

Signed-off-by: 范映欢 <fanyinghuan5@h-partners.com>
This commit is contained in:
范映欢 2024-05-11 11:28:44 +08:00
parent 6a14e920e8
commit 0f42922fa8
5 changed files with 6 additions and 6 deletions

View File

@ -2155,7 +2155,7 @@ int32_t GetHmlOrP2pAuthHandle(AuthHandle **authHandle, int32_t *num)
return SOFTBUS_LOCK_ERR;
}
uint32_t count = GetAllHmlOrP2pAuthHandleNum();
if (count <= 0) {
if (count == 0) {
AUTH_LOGE(AUTH_CONN, "not found hml or p2p authHandle");
ReleaseAuthLock();
return SOFTBUS_AUTH_NOT_FOUND;

View File

@ -1144,7 +1144,7 @@ static int32_t PostMessageToAuthFsmByConnId(int32_t msgType, uint64_t connId, bo
static void SetAuthStartTime(AuthFsm *authFsm)
{
authFsm->statisticData.startAuthTime = LnnUpTimeMs();
authFsm->statisticData.startAuthTime = (uint64_t)LnnUpTimeMs();
}
int32_t AuthSessionStartAuth(const AuthParam *authParam, const AuthConnInfo *connInfo)

View File

@ -635,7 +635,7 @@ static int32_t LaneLinkOfBleReuseCommon(uint32_t reqId, const LinkRequest *reqIn
linkInfo.linkInfo.ble.protoType = type;
if (type == BLE_COC) {
linkInfo.type = LANE_COC;
linkInfo.linkInfo.ble.psm = connection->psm;
linkInfo.linkInfo.ble.psm = (int32_t)connection->psm;
} else if (type == BLE_GATT) {
linkInfo.type = LANE_BLE;
}

View File

@ -117,12 +117,12 @@ static int32_t GetLaneResource(LaneTransType transType, LaneLinkType *optLink, u
static bool GetNetCap(const char *networkId, uint32_t *local, uint32_t *remote)
{
int32_t ret = LnnGetLocalNumU32Info(NUM_KEY_NET_CAP, local);
if (ret != SOFTBUS_OK || *local < 0) {
if (ret != SOFTBUS_OK) {
LNN_LOGE(LNN_LANE, "LnnGetLocalNumInfo err, ret=%{public}d, local=%{public}u", ret, *local);
return false;
}
ret = LnnGetRemoteNumU32Info(networkId, NUM_KEY_NET_CAP, remote);
if (ret != SOFTBUS_OK || *remote < 0) {
if (ret != SOFTBUS_OK) {
LNN_LOGE(LNN_LANE, "LnnGetRemoteNumInfo err, ret=%{public}d, remote=%{public}u", ret, *remote);
return false;
}

View File

@ -184,7 +184,7 @@ static int32_t WlanDetectReliability(uint32_t laneReqId, const LaneLinkInfo *lan
SoftBusFree(infoItem);
return fd;
}
infoItem->connId.wlanFd = fd;
infoItem->connId.wlanFd = (uint32_t)fd;
if (SoftBusMutexLock(&g_laneDetectList.lock) != SOFTBUS_OK) {
ConnShutdownSocket(fd);
SoftBusFree(infoItem);