mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-26 10:07:06 +08:00
Replace several occurences of stdint types by lwIPs portability typedefs
Fixes bug #55405: Usage of uint8_t instead of ui8_t in TCP code
This commit is contained in:
@@ -2594,7 +2594,7 @@ tcp_ext_arg_alloc_id(void)
|
||||
* @param callbacks callback table (const since it is referenced, not copied!)
|
||||
*/
|
||||
void
|
||||
tcp_ext_arg_set_callbacks(struct tcp_pcb *pcb, uint8_t id, const struct tcp_ext_arg_callbacks * const callbacks)
|
||||
tcp_ext_arg_set_callbacks(struct tcp_pcb *pcb, u8_t id, const struct tcp_ext_arg_callbacks * const callbacks)
|
||||
{
|
||||
LWIP_ASSERT("pcb != NULL", pcb != NULL);
|
||||
LWIP_ASSERT("id < LWIP_TCP_PCB_NUM_EXT_ARGS", id < LWIP_TCP_PCB_NUM_EXT_ARGS);
|
||||
@@ -2613,7 +2613,7 @@ tcp_ext_arg_set_callbacks(struct tcp_pcb *pcb, uint8_t id, const struct tcp_ext_
|
||||
* @param id ext_args index to set (allocated via @ref tcp_ext_arg_alloc_id)
|
||||
* @param arg data pointer to set
|
||||
*/
|
||||
void tcp_ext_arg_set(struct tcp_pcb *pcb, uint8_t id, void *arg)
|
||||
void tcp_ext_arg_set(struct tcp_pcb *pcb, u8_t id, void *arg)
|
||||
{
|
||||
LWIP_ASSERT("pcb != NULL", pcb != NULL);
|
||||
LWIP_ASSERT("id < LWIP_TCP_PCB_NUM_EXT_ARGS", id < LWIP_TCP_PCB_NUM_EXT_ARGS);
|
||||
@@ -2631,7 +2631,7 @@ void tcp_ext_arg_set(struct tcp_pcb *pcb, uint8_t id, void *arg)
|
||||
* @param id ext_args index to set (allocated via @ref tcp_ext_arg_alloc_id)
|
||||
* @return data pointer at the given index
|
||||
*/
|
||||
void *tcp_ext_arg_get(const struct tcp_pcb *pcb, uint8_t id)
|
||||
void *tcp_ext_arg_get(const struct tcp_pcb *pcb, u8_t id)
|
||||
{
|
||||
LWIP_ASSERT("pcb != NULL", pcb != NULL);
|
||||
LWIP_ASSERT("id < LWIP_TCP_PCB_NUM_EXT_ARGS", id < LWIP_TCP_PCB_NUM_EXT_ARGS);
|
||||
|
||||
Reference in New Issue
Block a user