mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 05:24:37 +08:00
Fix warning about bad cast in pbuf_skip()
This commit is contained in:
parent
72316bdb5b
commit
e94c9ffa70
@ -1119,7 +1119,8 @@ pbuf_skip_const(const struct pbuf* in, u16_t in_offset, u16_t* out_offset)
|
|||||||
struct pbuf*
|
struct pbuf*
|
||||||
pbuf_skip(struct pbuf* in, u16_t in_offset, u16_t* out_offset)
|
pbuf_skip(struct pbuf* in, u16_t in_offset, u16_t* out_offset)
|
||||||
{
|
{
|
||||||
return LWIP_CONST_CAST(struct pbuf*, pbuf_skip_const(in, in_offset, out_offset));
|
const struct pbuf* out = pbuf_skip_const(in, in_offset, out_offset);
|
||||||
|
return LWIP_CONST_CAST(struct pbuf*, out);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user