From 3450a7899266e3592e80c1b27b53ee8340bb05a9 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Sun, 19 Apr 2015 16:34:34 +0200 Subject: [PATCH] PPP, change ppp_write() return type from int to err_t ppp_write() callback returns err_t, makes ppp_write() consistent with the callback it is calling. --- src/include/netif/ppp/ppp_impl.h | 2 +- src/netif/ppp/ppp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/netif/ppp/ppp_impl.h b/src/include/netif/ppp/ppp_impl.h index 480760a8..106baa60 100644 --- a/src/include/netif/ppp/ppp_impl.h +++ b/src/include/netif/ppp/ppp_impl.h @@ -432,7 +432,7 @@ struct pbuf *ppp_singlebuf(struct pbuf *p); */ /* function called by all PPP subsystems to send packets */ -int ppp_write(ppp_pcb *pcb, struct pbuf *p); +err_t ppp_write(ppp_pcb *pcb, struct pbuf *p); /* functions called by auth.c link_terminated() */ void ppp_link_terminated(ppp_pcb *pcb); diff --git a/src/netif/ppp/ppp.c b/src/netif/ppp/ppp.c index 0dc1f808..f82ab62e 100644 --- a/src/netif/ppp/ppp.c +++ b/src/netif/ppp/ppp.c @@ -881,7 +881,7 @@ struct pbuf *ppp_singlebuf(struct pbuf *p) { * RETURN: >= 0 Number of characters written * -1 Failed to write to device */ -int ppp_write(ppp_pcb *pcb, struct pbuf *p) { +err_t ppp_write(ppp_pcb *pcb, struct pbuf *p) { #if PRINTPKT_SUPPORT ppp_dump_packet("sent", (unsigned char *)p->payload+2, p->len-2); #endif /* PRINTPKT_SUPPORT */