mirror of
https://github.com/openharmony/communication_t2stack.git
synced 2026-08-28 05:20:03 -04:00
dfinder fix spelling mistakes
Signed-off-by: xinkun_server_bule <710709369@qq.com>
This commit is contained in:
committed by
Agrant
parent
860c6b0549
commit
914bca5d88
@@ -164,7 +164,7 @@ static void CoAPEpollErrorHandle(void *data)
|
||||
continue;
|
||||
}
|
||||
if (IsCoapCtxEndpointSocket(g_coapCtxArr[i].ctx, socket->fd)) {
|
||||
DFINDER_LOGE(TAG, "coap epoll error occured, with context idx-%u", i);
|
||||
DFINDER_LOGE(TAG, "coap epoll error occurred, with context idx-%u", i);
|
||||
g_coapCtxArr[i].ctxSocketErrFlag = NSTACKX_TRUE;
|
||||
return;
|
||||
}
|
||||
@@ -532,7 +532,7 @@ int32_t CoapThreadInit(void)
|
||||
return NSTACKX_EOK;
|
||||
}
|
||||
|
||||
void CoapThreadDestory(void)
|
||||
void CoapThreadDestroy(void)
|
||||
{
|
||||
PthreadMutexLock(&g_coapThreadParam.waitLock);
|
||||
g_coapThreadParam.terminated = NSTACKX_TRUE;
|
||||
|
||||
@@ -207,7 +207,7 @@ static int32_t CoapSoftBusDecodeEx(CoapPacket *pkt, const uint8_t *buf, uint32_t
|
||||
}
|
||||
|
||||
if (pkt->protocol != COAP_UDP) {
|
||||
DFINDER_LOGE(TAG, "CoapSoftBusDecode protocal not coap_udp");
|
||||
DFINDER_LOGE(TAG, "CoapSoftBusDecode protocol not coap_udp");
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -217,12 +217,12 @@ static int32_t CoapSoftBusDecodeEx(CoapPacket *pkt, const uint8_t *buf, uint32_t
|
||||
}
|
||||
|
||||
if (pkt->header.ver != COAP_VERSION) {
|
||||
DFINDER_LOGE(TAG, "CoapSoftBusDecode protocal header version invalid");
|
||||
DFINDER_LOGE(TAG, "CoapSoftBusDecode protocol header version invalid");
|
||||
return DISCOVERY_ERR_VER_INVALID;
|
||||
}
|
||||
|
||||
if (pkt->header.tokenLen > MAX_TOK_LEN) {
|
||||
DFINDER_LOGE(TAG, "CoapSoftBusDecode protocal header tokenlen invalid");
|
||||
DFINDER_LOGE(TAG, "CoapSoftBusDecode protocol header tokenlen invalid");
|
||||
return DISCOVERY_ERR_INVALID_TOKEN_LEN;
|
||||
}
|
||||
|
||||
@@ -708,4 +708,4 @@ int32_t BuildCoapPkt(const CoapBuildParam *param, const char *pktPayload, CoapRe
|
||||
IncStatistics(STATS_BUILD_PKT_FAILED);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -470,7 +470,7 @@ void NSTACKX_Deinit(void)
|
||||
#endif /* END OF DFINDER_USE_MINI_NSTACKX */
|
||||
#endif /* END OF DFINDER_SUPPORT_MULTI_NIF */
|
||||
#ifdef _WIN32
|
||||
CoapThreadDestory();
|
||||
CoapThreadDestroy();
|
||||
#endif
|
||||
DeviceModuleClean();
|
||||
EventNodeChainClean(&g_eventNodeChain);
|
||||
|
||||
@@ -57,11 +57,11 @@ void DeRegisteCoAPEpollTaskCtx(struct coap_context_t *ctx, uint32_t *socketNum,
|
||||
void ResetCoapSocketTaskCount(uint8_t isBusy);
|
||||
#ifdef _WIN32
|
||||
int32_t CoapThreadInit(void);
|
||||
void CoapThreadDestory(void);
|
||||
void CoapThreadDestroy(void);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* COAP_APP_H */
|
||||
#endif /* COAP_APP_H */
|
||||
|
||||
Reference in New Issue
Block a user