PPP, using err_t return code instead of PPPERR_

Standardised PPP API to follow lwIP already used return codes.
PPPERR_ are now used only on link status callback.
This commit is contained in:
Sylvain Rochet
2015-02-20 21:24:58 +01:00
parent 0a761d238a
commit 6b4db944dd
4 changed files with 19 additions and 19 deletions

View File

@@ -249,7 +249,7 @@ pppapi_do_ppp_open(struct pppapi_msg_msg *msg)
* Call ppp_open() in a thread-safe way by running that function inside the
* tcpip_thread context.
*/
int
err_t
pppapi_open(ppp_pcb *pcb, u16_t holdoff)
{
struct pppapi_msg msg;
@@ -275,7 +275,7 @@ pppapi_do_ppp_close(struct pppapi_msg_msg *msg)
* Call ppp_close() in a thread-safe way by running that function inside the
* tcpip_thread context.
*/
int
err_t
pppapi_close(ppp_pcb *pcb)
{
struct pppapi_msg msg;
@@ -324,7 +324,7 @@ pppapi_do_ppp_free(struct pppapi_msg_msg *msg)
* Call ppp_free() in a thread-safe way by running that function inside the
* tcpip_thread context.
*/
int
err_t
pppapi_free(ppp_pcb *pcb)
{
struct pppapi_msg msg;