From 88fdc46e03da1a7ed462dfc4e399a8e0ca3998a6 Mon Sep 17 00:00:00 2001 From: Mohamed Seliem Date: Sun, 4 Dec 2016 19:03:15 +0200 Subject: [PATCH] update httpd_cgi to enable the compilation of webserver-ipv6 example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit this simple change fixes the bug reported in @#1541. ../../apps/webserver/httpd.h:63:9: note: expected ‘uip_ip6addr_t’ but argument is of type ‘union uip_ipaddr_t *’ --- apps/webserver/httpd-cgi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/webserver/httpd-cgi.c b/apps/webserver/httpd-cgi.c index 506d024d2..0cd474f9b 100644 --- a/apps/webserver/httpd-cgi.c +++ b/apps/webserver/httpd-cgi.c @@ -252,7 +252,7 @@ extern uip_ds6_netif_t uip_ds6_if; static unsigned short make_addresses(void *p) { -uint8_t i,j=0; +uint8_t j=0; uint16_t numprinted; numprinted = httpd_snprintf((char *)uip_appdata, uip_mss(),httpd_cgi_addrh); for (i=0; iipaddr, uip_appdata + numprinted); numprinted += httpd_snprintf((char *)uip_appdata+numprinted, uip_mss()-numprinted, httpd_cgi_rtes1, r->length); - numprinted += httpd_cgi_sprint_ip6(uip_ds6_route_nexthop(r), uip_appdata + numprinted); + numprinted += httpd_cgi_sprint_ip6(*(uip_ds6_route_nexthop(r)), uip_appdata + numprinted); if(r->state.lifetime < 3600) { numprinted += httpd_snprintf((char *)uip_appdata+numprinted, uip_mss()-numprinted, httpd_cgi_rtes2, r->state.lifetime); } else {