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:
p-szafonimateusz 2024-08-26 11:57:23 +02:00 committed by Petro Karashchenko
parent 5172da6b16
commit dc92dee353

View File

@ -296,7 +296,7 @@ struct ip6t_icmp
static inline FAR struct xt_entry_target *
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 */