diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2005-11-14 18:21:01 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-11-14 18:21:01 -0500 |
commit | dbd36ea496726460299842fdbeaaa7fff2f0c5c7 (patch) | |
tree | 54e994d90640602cd81b968fe99f0f7623dd335c /net | |
parent | ee90f62b3e69d0cd9f8edc6b95f07b1a8c38aaf4 (diff) |
[NETFILTER] ctnetlink: use size_t to make gcc-4.x happy
Make gcc-4.x happy. Use size_t instead of int. Thanks to Patrick McHardy
for the hint.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/netfilter/ip_conntrack_netlink.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/netfilter/ip_conntrack_netlink.c b/net/ipv4/netfilter/ip_conntrack_netlink.c index d2a4fec22862..853d0ac5534f 100644 --- a/net/ipv4/netfilter/ip_conntrack_netlink.c +++ b/net/ipv4/netfilter/ip_conntrack_netlink.c | |||
@@ -467,7 +467,7 @@ out: | |||
467 | } | 467 | } |
468 | #endif | 468 | #endif |
469 | 469 | ||
470 | static const int cta_min_ip[CTA_IP_MAX] = { | 470 | static const size_t cta_min_ip[CTA_IP_MAX] = { |
471 | [CTA_IP_V4_SRC-1] = sizeof(u_int32_t), | 471 | [CTA_IP_V4_SRC-1] = sizeof(u_int32_t), |
472 | [CTA_IP_V4_DST-1] = sizeof(u_int32_t), | 472 | [CTA_IP_V4_DST-1] = sizeof(u_int32_t), |
473 | }; | 473 | }; |
@@ -497,7 +497,7 @@ ctnetlink_parse_tuple_ip(struct nfattr *attr, struct ip_conntrack_tuple *tuple) | |||
497 | return 0; | 497 | return 0; |
498 | } | 498 | } |
499 | 499 | ||
500 | static const int cta_min_proto[CTA_PROTO_MAX] = { | 500 | static const size_t cta_min_proto[CTA_PROTO_MAX] = { |
501 | [CTA_PROTO_NUM-1] = sizeof(u_int16_t), | 501 | [CTA_PROTO_NUM-1] = sizeof(u_int16_t), |
502 | [CTA_PROTO_SRC_PORT-1] = sizeof(u_int16_t), | 502 | [CTA_PROTO_SRC_PORT-1] = sizeof(u_int16_t), |
503 | [CTA_PROTO_DST_PORT-1] = sizeof(u_int16_t), | 503 | [CTA_PROTO_DST_PORT-1] = sizeof(u_int16_t), |
@@ -576,7 +576,7 @@ ctnetlink_parse_tuple(struct nfattr *cda[], struct ip_conntrack_tuple *tuple, | |||
576 | } | 576 | } |
577 | 577 | ||
578 | #ifdef CONFIG_IP_NF_NAT_NEEDED | 578 | #ifdef CONFIG_IP_NF_NAT_NEEDED |
579 | static const int cta_min_protonat[CTA_PROTONAT_MAX] = { | 579 | static const size_t cta_min_protonat[CTA_PROTONAT_MAX] = { |
580 | [CTA_PROTONAT_PORT_MIN-1] = sizeof(u_int16_t), | 580 | [CTA_PROTONAT_PORT_MIN-1] = sizeof(u_int16_t), |
581 | [CTA_PROTONAT_PORT_MAX-1] = sizeof(u_int16_t), | 581 | [CTA_PROTONAT_PORT_MAX-1] = sizeof(u_int16_t), |
582 | }; | 582 | }; |