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.
This commit is contained in:
Sylvain Rochet 2015-04-19 16:34:34 +02:00
parent f4ef6180b8
commit 3450a78992
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

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