PPP, using PPP netif->num number instead of ppp->num

Saved 2 bytes of RAM if debug is enabled, we are now using the
netif->num number instead of using our own ppp->num
This commit is contained in:
Sylvain Rochet
2015-02-21 01:21:24 +01:00
parent c5973dd411
commit f57d4818a4
3 changed files with 40 additions and 52 deletions

View File

@@ -305,9 +305,6 @@ struct ppp_addrs {
*/
struct ppp_pcb_s {
/* -- below are data that will NOT be cleared between two sessions */
#if PPP_DEBUG
u8_t num; /* Interface number - only useful for debugging */
#endif /* PPP_DEBUG */
ppp_settings settings;
const struct link_callbacks *link_cb;
void *link_ctx_cb;