mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-06-01 15:34:05 +08:00
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:
committed by
Sylvain Rochet
parent
7f91a71eca
commit
b2d1fc119d
@@ -58,7 +58,7 @@ enum {
|
||||
};
|
||||
|
||||
/* PPPoS serial output callback function prototype */
|
||||
typedef u32_t (*pppos_output_cb_fn)(ppp_pcb *pcb, u8_t *data, u32_t len, void *ctx);
|
||||
typedef u32_t (*pppos_output_cb_fn)(ppp_pcb *pcb, const void *data, u32_t len, void *ctx);
|
||||
|
||||
/*
|
||||
* Extended asyncmap - allows any character to be escaped.
|
||||
|
||||
Reference in New Issue
Block a user