Fix network port object for-loop to not depend on C99 features.

This commit is contained in:
skarg
2018-12-18 03:36:45 +00:00
parent c05245c6ff
commit 4b3db4416e
+3 -2
View File
@@ -1489,8 +1489,9 @@ int Network_Port_Read_Property(
/* if no index was specified, then try to encode the entire list */
/* into one packet. */
int len;
for (unsigned i = 0; i < BIP_DNS_MAX; i++) {
Network_Port_IP_DNS_Server(rpdata->object_instance, i,
unsigned index;
for (index = 0; index < BIP_DNS_MAX; index++) {
Network_Port_IP_DNS_Server(rpdata->object_instance, index,
&octet_string);
len = encode_application_octet_string(&apdu[apdu_len],
&octet_string);