Clean up route preference names. (#1810)

This commit is contained in:
Jonathan Hui
2017-05-24 08:34:49 -07:00
committed by GitHub
parent a6a5b62d34
commit fce2d83927
3 changed files with 18 additions and 18 deletions
@@ -1596,15 +1596,15 @@ OTNODEAPI int32_t OTCALL otNodeAddPrefix(otNode* aNode, const char *aPrefix, con
if (strcmp(aPreference, "high") == 0)
{
config.mPreference = kRoutePreferenceHigh;
config.mPreference = OT_ROUTE_PREFERENCE_HIGH;
}
else if (strcmp(aPreference, "med") == 0)
{
config.mPreference = kRoutePreferenceMedium;
config.mPreference = OT_ROUTE_PREFERENCE_MED;
}
else if (strcmp(aPreference, "low") == 0)
{
config.mPreference = kRoutePreferenceLow;
config.mPreference = OT_ROUTE_PREFERENCE_LOW;
}
else
{
@@ -1639,15 +1639,15 @@ OTNODEAPI int32_t OTCALL otNodeAddRoute(otNode* aNode, const char *aPrefix, cons
if (strcmp(aPreference, "high") == 0)
{
config.mPreference = kRoutePreferenceHigh;
config.mPreference = OT_ROUTE_PREFERENCE_HIGH;
}
else if (strcmp(aPreference, "med") == 0)
{
config.mPreference = kRoutePreferenceMedium;
config.mPreference = OT_ROUTE_PREFERENCE_MED;
}
else if (strcmp(aPreference, "low") == 0)
{
config.mPreference = kRoutePreferenceLow;
config.mPreference = OT_ROUTE_PREFERENCE_LOW;
}
else
{