mirror of
https://github.com/espressif/openthread.git
synced 2026-09-14 21:20:11 +00:00
[cli] fix namespace usage (#10088)
The method `ParseEnableOrDisable` has been moved to the `Utils` class and these components inherit the `Utils` class so there is no need to add namespace.
This commit is contained in:
+1
-1
@@ -94,7 +94,7 @@ template <> otError Dns::Process<Cmd("compression")>(Arg aArgs[])
|
|||||||
{
|
{
|
||||||
bool enable;
|
bool enable;
|
||||||
|
|
||||||
SuccessOrExit(error = Interpreter::ParseEnableOrDisable(aArgs[0], enable));
|
SuccessOrExit(error = ParseEnableOrDisable(aArgs[0], enable));
|
||||||
otDnsSetNameCompressionEnabled(enable);
|
otDnsSetNameCompressionEnabled(enable);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ template <> otError SrpClient::Process<Cmd("autostart")>(Arg aArgs[])
|
|||||||
ExitNow();
|
ExitNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
SuccessOrExit(error = Interpreter::ParseEnableOrDisable(aArgs[0], enable));
|
SuccessOrExit(error = ParseEnableOrDisable(aArgs[0], enable));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @cli srp client autostart enable
|
* @cli srp client autostart enable
|
||||||
@@ -173,7 +173,7 @@ template <> otError SrpClient::Process<Cmd("callback")>(Arg aArgs[])
|
|||||||
ExitNow();
|
ExitNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
error = Interpreter::ParseEnableOrDisable(aArgs[0], mCallbackEnabled);
|
error = ParseEnableOrDisable(aArgs[0], mCallbackEnabled);
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
return error;
|
return error;
|
||||||
|
|||||||
+1
-1
@@ -360,7 +360,7 @@ template <> otError UdpExample::Process<Cmd("linksecurity")>(Arg aArgs[])
|
|||||||
*/
|
*/
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
error = Interpreter::ParseEnableOrDisable(aArgs[0], mLinkSecurityEnabled);
|
error = ParseEnableOrDisable(aArgs[0], mLinkSecurityEnabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
return error;
|
return error;
|
||||||
|
|||||||
Reference in New Issue
Block a user