if (out->g_plugin == plugin)
{
//Ignore because it's already in the list.
- return TW_RESULT_OK;
+ return (OCStackResult) TW_RESULT_OK;
}
}
}
if (ret != TW_RESULT_OK)
{
OIC_LOG(ERROR, TAG, "TWDequeueEntry");
- ret = OC_STACK_ERROR;
+ ret = (TWResultCode)OC_STACK_ERROR;
break;
}
if (entry == NULL)
{
- ret = OC_STACK_OK;
+ ret = (TWResultCode)OC_STACK_OK;
break;
}
if(ret != TW_RESULT_OK)
{
OIC_LOG(ERROR, TAG, "Failed to delete entry.");
- ret = OC_STACK_ERROR;
+ ret = (TWResultCode)OC_STACK_ERROR;
break;
}
}
if(ret != TW_RESULT_OK)
{
OIC_LOG(ERROR, TAG, "Failed to delete entry.");
- ret = OC_STACK_ERROR;
+ ret = (TWResultCode)OC_STACK_ERROR;
break;
}
}
}
- return ret;
+ return (OCStackResult)ret;
}
OCStackResult TWUninitialize(PIPlugin_Zigbee* plugin)
if(stringRet <= 0)
{
OIC_LOG(ERROR, TAG, "Build command error.");
- ret = OC_STACK_ERROR;
+ ret = (TWResultCode)OC_STACK_ERROR;
goto exit;
}
ret = TWIssueATCommand(ctx->g_plugin, cmdString);
if(stringRet <= 0)
{
OIC_LOG(ERROR, TAG, "Build command error.");
- ret = OC_STACK_ERROR;
+ ret = (TWResultCode)OC_STACK_ERROR;
goto exit;
}
ret = TWIssueATCommand(ctx->g_plugin, cmdString);
if(stringRet <= 0)
{
OIC_LOG(ERROR, TAG, "Build command error.");
- ret = OC_STACK_ERROR;
+ ret = (TWResultCode)OC_STACK_ERROR;
goto exit;
}
ret = TWIssueATCommand(ctx->g_plugin, cmdString);