Merge pull request #2147 from g-oikonomou/bugfix/1972

Add missing variable declaration
This commit is contained in:
George Oikonomou 2017-03-18 17:23:41 +00:00 committed by GitHub
commit 99402348eb

View file

@ -252,8 +252,9 @@ extern uip_ds6_netif_t uip_ds6_if;
static unsigned short static unsigned short
make_addresses(void *p) make_addresses(void *p)
{ {
uint8_t j=0; uint8_t i, j = 0;
uint16_t numprinted; uint16_t numprinted;
numprinted = httpd_snprintf((char *)uip_appdata, uip_mss(),httpd_cgi_addrh); numprinted = httpd_snprintf((char *)uip_appdata, uip_mss(),httpd_cgi_addrh);
for (i=0; i<UIP_DS6_ADDR_NB;i++) { for (i=0; i<UIP_DS6_ADDR_NB;i++) {
if (uip_ds6_if.addr_list[i].isused) { if (uip_ds6_if.addr_list[i].isused) {