attribute sizes are size_t instead of int
Subsystems (2)
Pablo Neira
maintainerPATCH 2/4 attribute sizes are size_t instead of int
Make gcc-4.x happy. Use size_t instead of int. Thanks to Patrick Mchardy for the hint.
Signed-off-by Pablo Neira Ayuso <[email protected]>
Signature · 2 lines
The dawn of the fourth age of Linux firewalling is coming; a time of great struggle and heroic deeds -- J.Kadlecsik got inspired by J.Morris
Make gcc-4.x happy. Use size_t instead of int. Thanks to Patrick Mchardy for the hint.
Signed-off-by Pablo Neira Ayuso <[email protected]>
net/ipv4/netfilter/ip_conntrack_netlink.c +3 -3
@@ -467,7 +467,7 @@ out: }#endif -static const int cta_min_ip[CTA_IP_MAX ] = { +static const size_t cta_min_ip[CTA_IP_MAX ] = { [CTA_IP_V4_SRC -1 ] =sizeof (u_int32_t), [CTA_IP_V4_DST -1 ] =sizeof (u_int32_t), };
@@ -497,7 +497,7 @@ ctnetlink_parse_tuple_ip(struct nfattr *return 0 ; } -static const int cta_min_proto[CTA_PROTO_MAX ] = { +static const size_t cta_min_proto[CTA_PROTO_MAX ] = { [CTA_PROTO_NUM -1 ] =sizeof (u_int16_t), [CTA_PROTO_SRC_PORT -1 ] =sizeof (u_int16_t), [CTA_PROTO_DST_PORT -1 ] =sizeof (u_int16_t),
@@ -576,7 +576,7 @@ ctnetlink_parse_tuple(struct nfattr *cda }#ifdef CONFIG_IP_NF_NAT_NEEDED -static const int cta_min_protonat[CTA_PROTONAT_MAX ] = { +static const size_t cta_min_protonat[CTA_PROTONAT_MAX ] = { [CTA_PROTONAT_PORT_MIN -1 ] =sizeof (u_int16_t), [CTA_PROTONAT_PORT_MAX -1 ] =sizeof (u_int16_t), };
Harald Welte
AppliedQuoted 2 lines · Pablo Neira
Make gcc-4.x happy. Use
size_tinstead of int. Thanks to Patrick Mchardy for the hint.
thanks, applied.
Signature · 5 lines
- Harald Welte <[email protected]> http://netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie