PPP: using a macro for ppp_set_default() instead of a function

This function is only calling netif_set_default(), a macro
is adequate.
This commit is contained in:
Sylvain Rochet 2015-02-14 22:27:32 +01:00
parent 17c6be6a9b
commit c8c0dc2f53
2 changed files with 1 additions and 5 deletions

View File

@ -473,7 +473,7 @@ struct ppp_pcb_s {
* Set a PPP interface as the default network interface
* (used to output all packets for which no specific route is found).
*/
void ppp_set_default(ppp_pcb *pcb);
#define ppp_set_default(ppp) netif_set_default(ppp->netif)
/*
* Set auth helper, optional, you can either fill ppp_pcb->settings.

View File

@ -237,10 +237,6 @@ int ppp_init(void) {
return 0;
}
void ppp_set_default(ppp_pcb *pcb) {
netif_set_default(pcb->netif);
}
void ppp_set_auth(ppp_pcb *pcb, u8_t authtype, const char *user, const char *passwd) {
#if PAP_SUPPORT