mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 03:05:40 +08:00
windows sim:convert pointer type to char* fix windows net build error
nuttx\include\nuttx\net\netfilter\ip6_tables.h(299,24): error C2036: 'void *': unknown size Co-authored-by: chenxiaoyi <chenxiaoyi@xiaomi.com> Co-authored-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
@@ -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 void *)e + e->target_offset;
|
return (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