PPP, PPPoS: Use const void* instead of u8_t* in pppos_output_cb_fn()

There is no good reason why this function should take a non-const
pointer, as the output callback should never modify what lwIP gives it.
While changing that also switch to a more generic `void*` instead of
"byte".
This commit is contained in:
Freddie Chopin
2019-12-05 22:12:45 +01:00
committed by Sylvain Rochet
parent 7f91a71eca
commit b2d1fc119d
4 changed files with 6 additions and 6 deletions

View File

@@ -195,7 +195,7 @@ static void status_cb(ppp_pcb *pcb, int err_code, void *ctx) {
*
* Return value: len if write succeed
*/
static u32_t output_cb(ppp_pcb *pcb, u8_t *data, u32_t len, void *ctx) {
static u32_t output_cb(ppp_pcb *pcb, const void *data, u32_t len, void *ctx) {
return uart_write(UART, data, len);
}