minor derivative to reduce compiler warnings and tag read-only parameters as const.

Dependents:   EthernetInterface

Fork of lwip by mbed official

Files at this revision

API Documentation at this revision

Comitter:
WiredHome
Date:
Tue Jul 07 14:09:21 2015 +0000
Parent:
19:1046f8be4d44
Child:
21:d78ed585db09
Commit message:
Compiler warning reduction

Changed in this revision

core/dns.c Show annotated file Show diff for this revision Revisions of this file
--- a/core/dns.c	Thu Mar 12 14:31:39 2015 +0000
+++ b/core/dns.c	Tue Jul 07 14:09:21 2015 +0000
@@ -567,6 +567,7 @@
   const char *pHostname;
   u8_t n;
 
+  memset(&qry, 0, sizeof(qry));
   LWIP_DEBUGF(DNS_DEBUG, ("dns_send: dns_servers[%"U16_F"] \"%s\": request\n",
               (u16_t)(numdns), name));
   LWIP_ASSERT("dns server out of array", numdns < DNS_MAX_SERVERS);