mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-07 16:13:38 +08:00
PPP, PPPoS: Use const void* instead of u8_t* in pppos_input_tcpip()
There is no good reason why this function should take a non-const pointer. While changing that also switch to a more generic `void*` instead of "byte".
This commit is contained in:
committed by
Sylvain Rochet
parent
3b57750715
commit
c5021bdc4d
@@ -422,7 +422,7 @@ pppos_destroy(ppp_pcb *ppp, void *ctx)
|
||||
* @param l length of received data
|
||||
*/
|
||||
err_t
|
||||
pppos_input_tcpip(ppp_pcb *ppp, u8_t *s, int l)
|
||||
pppos_input_tcpip(ppp_pcb *ppp, const void *s, int l)
|
||||
{
|
||||
struct pbuf *p;
|
||||
err_t err;
|
||||
|
||||
Reference in New Issue
Block a user