PPP, removed now useless struct ppp_addrs from ppp_pcb

Saved a few bytes of useless copy.
This commit is contained in:
Sylvain Rochet
2015-03-08 00:44:47 +01:00
parent c966a538fb
commit b3c7e948be
2 changed files with 2 additions and 8 deletions

View File

@@ -582,9 +582,6 @@ void ppp_clear(ppp_pcb *pcb) {
#endif /* PPP_STATS_SUPPORT */
memset(&pcb->phase, 0, sizeof(ppp_pcb) - ( (char*)&((ppp_pcb*)0)->phase - (char*)0 ) );
#if PPP_IPV4_SUPPORT
ip4_addr_set_u32(&pcb->addrs.netmask, IPADDR_BROADCAST);
#endif /* PPP_IPV4_SUPPORT */
/*
* Initialize each protocol.