mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
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:
parent
f4ef6180b8
commit
3450a78992
@ -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);
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user