mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 05:55:46 +08:00
include/nuttx/net/netfilter/ip6_tables.h: fix gcc 14 errors
fix gcc 14 errors for ip6_tables.h Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
5172da6b16
commit
dc92dee353
@@ -296,7 +296,7 @@ struct ip6t_icmp
|
|||||||
static inline FAR struct xt_entry_target *
|
static inline FAR struct xt_entry_target *
|
||||||
ip6t_get_target(FAR struct ip6t_entry *e)
|
ip6t_get_target(FAR struct ip6t_entry *e)
|
||||||
{
|
{
|
||||||
return (FAR char *)e + e->target_offset;
|
return (FAR struct xt_entry_target *)((FAR char *)e + e->target_offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* __INCLUDE_NUTTX_NET_NETFILTER_IP6_TABLES_H */
|
#endif /* __INCLUDE_NUTTX_NET_NETFILTER_IP6_TABLES_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user