From bd29f7168c7474a804196cf66444d8c7c44002f6 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Sat, 14 Feb 2015 22:31:22 +0100 Subject: [PATCH] PPP: ppp_init() is not a public function, moving it in private part ppp_init() is not a public fonction anymore, move this function in ppp.c "private" functions. --- src/netif/ppp/ppp.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/netif/ppp/ppp.c b/src/netif/ppp/ppp.c index a314da7c..f5f8fd2a 100644 --- a/src/netif/ppp/ppp.c +++ b/src/netif/ppp/ppp.c @@ -225,18 +225,6 @@ static int ppp_write_over_l2tp(ppp_pcb *pcb, struct pbuf *p); /*** PUBLIC FUNCTION DEFINITIONS ***/ /***********************************/ -/* Initialize the PPP subsystem. */ -int ppp_init(void) { - - /* - * Initialize magic number generator now so that protocols may - * use magic numbers in initialization. - */ - magic_init(); - - return 0; -} - void ppp_set_auth(ppp_pcb *pcb, u8_t authtype, const char *user, const char *passwd) { #if PAP_SUPPORT @@ -522,6 +510,18 @@ int ppp_free(ppp_pcb *pcb) { /*** PRIVATE FUNCTION DEFINITIONS ***/ /************************************/ +/* Initialize the PPP subsystem. */ +int ppp_init(void) { + + /* + * Initialize magic number generator now so that protocols may + * use magic numbers in initialization. + */ + magic_init(); + + return 0; +} + /* * Create a new PPP session. *