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.
This commit is contained in:
Sylvain Rochet 2015-02-14 22:31:22 +01:00
parent c8c0dc2f53
commit bd29f7168c

View File

@ -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.
*