Fix network port object for-loop to not depend on C99 features.
This commit is contained in:
@@ -1489,8 +1489,9 @@ int Network_Port_Read_Property(
|
|||||||
/* if no index was specified, then try to encode the entire list */
|
/* if no index was specified, then try to encode the entire list */
|
||||||
/* into one packet. */
|
/* into one packet. */
|
||||||
int len;
|
int len;
|
||||||
for (unsigned i = 0; i < BIP_DNS_MAX; i++) {
|
unsigned index;
|
||||||
Network_Port_IP_DNS_Server(rpdata->object_instance, i,
|
for (index = 0; index < BIP_DNS_MAX; index++) {
|
||||||
|
Network_Port_IP_DNS_Server(rpdata->object_instance, index,
|
||||||
&octet_string);
|
&octet_string);
|
||||||
len = encode_application_octet_string(&apdu[apdu_len],
|
len = encode_application_octet_string(&apdu[apdu_len],
|
||||||
&octet_string);
|
&octet_string);
|
||||||
|
|||||||
Reference in New Issue
Block a user