As per coding standards,
Index variable has modified to define inside of for loop
about caprotocolmessage / canetworkconfigurator
Change-Id: Id1fa11d800b8323dbbde209c8f93e54fd07b734b
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/792
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
Reviewed-by: Erich Keane <erich.keane@intel.com>
}
uint32_t selectedNetworkLength = u_arraylist_length(g_selectedNetworkList);
}
uint32_t selectedNetworkLength = u_arraylist_length(g_selectedNetworkList);
- uint32_t index;
- for (index = 0; index < selectedNetworkLength; index++)
+ for (uint32_t index = 0; index < selectedNetworkLength; index++)
{
void* ptrType = u_arraylist_get(g_selectedNetworkList, index);
if (NULL == ptrType)
{
void* ptrType = u_arraylist_get(g_selectedNetworkList, index);
if (NULL == ptrType)
- coap_list_t *opt;
- for (opt = options; opt; opt = opt->next)
+ for (coap_list_t *opt = options; opt; opt = opt->next)
{
OIC_LOG_V(DEBUG, TAG, "[%s] opt will be added.",
COAP_OPTION_DATA(*(coap_option *) opt->data));
{
OIC_LOG_V(DEBUG, TAG, "[%s] opt will be added.",
COAP_OPTION_DATA(*(coap_option *) opt->data));
return CA_STATUS_INVALID_PARAM;
}
return CA_STATUS_INVALID_PARAM;
}
- uint32_t i;
- for (i = 0; i < info.numOptions; i++)
+ for (uint32_t i = 0; i < info.numOptions; i++)
{
if(!(info.options + i))
{
{
if(!(info.options + i))
{
- uint8_t index;
- for (index = 0; index < tokenLength; index++)
+ for (uint8_t index = 0; index < tokenLength; index++)
{
// use valid characters
#ifdef ARDUINO
{
// use valid characters
#ifdef ARDUINO