commit | e94c9ffa701b02f4ee3fe4a8794a33027e2a243b | [log] [tgz] |
---|---|---|
author | Dirk Ziegelmeier <dirk@ziegelmeier.net> | Thu Jan 05 08:14:39 2017 +0100 |
committer | Dirk Ziegelmeier <dirk@ziegelmeier.net> | Thu Jan 05 08:14:39 2017 +0100 |
tree | ae7c2647266d7a7e053be34d311842254e16d954 | |
parent | 72316bdb5bb204938c88fced49956d60fc63a39c [diff] |
Fix warning about bad cast in pbuf_skip()
diff --git a/src/core/pbuf.c b/src/core/pbuf.c index 6047738..af63e60 100644 --- a/src/core/pbuf.c +++ b/src/core/pbuf.c
@@ -1119,7 +1119,8 @@ struct pbuf* 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); } /**