[error] force error checking (#4784)

This commit is contained in:
kangping
2020-05-06 11:17:58 -07:00
committed by GitHub
parent 6e8f2c9913
commit 49f36f8c24
96 changed files with 792 additions and 741 deletions
+3 -3
View File
@@ -276,7 +276,7 @@ Interpreter::Interpreter(Instance *aInstance)
mIcmpHandler.mReceiveCallback = Interpreter::HandleIcmpReceive;
mIcmpHandler.mContext = this;
otIcmp6RegisterHandler(mInstance, &mIcmpHandler);
IgnoreError(otIcmp6RegisterHandler(mInstance, &mIcmpHandler));
#if OPENTHREAD_CONFIG_DNS_CLIENT_ENABLE
memset(mResolvingHostname, 0, sizeof(mResolvingHostname));
@@ -3978,12 +3978,12 @@ void Interpreter::ProcessNetworkDiagnostic(uint8_t aArgsLength, char *aArgs[])
if (strcmp(aArgs[0], "get") == 0)
{
otThreadSendDiagnosticGet(mInstance, &address, tlvTypes, count);
IgnoreError(otThreadSendDiagnosticGet(mInstance, &address, tlvTypes, count));
ExitNow();
}
else if (strcmp(aArgs[0], "reset") == 0)
{
otThreadSendDiagnosticReset(mInstance, &address, tlvTypes, count);
IgnoreError(otThreadSendDiagnosticReset(mInstance, &address, tlvTypes, count));
AppendResult(OT_ERROR_NONE);
}
else