Re: [NETFILTER]: Use const in struct xt_match, xt_target, xt_table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jan 8 2008 17:28, Patrick McHardy wrote:
> Jan Engelhardt wrote:
>> origin git://computergmbh.de/linux netfilter
>> commit 911b3c3680fd17409c64a6589cfcaf18e4fa04ce
>> Author: Jan Engelhardt <jengelh@xxxxxxxxxxxxxxx>
>> Date:   Tue Jan 8 13:25:08 2008 +0100
>> 
>>     [NETFILTER]: Use const in struct xt_match, xt_target, xt_table
>
> This causes compiler warnings:
>
> net/ipv6/netfilter/ip6_tables.c: In function 'ip6t_do_table':
> net/ipv6/netfilter/ip6_tables.c:407: warning: passing argument 5 of
> 'trace_packet' discards qualifiers from pointer target type
> net/ipv6/netfilter/ip6_tables.c:406: warning: passing argument 5 of
> 'trace_packet' discards qualifiers from pointer target type
>

Please fold in this one:

commit 7084c6df091ebb6301e7e2782269784b416c98a6
Author: Jan Engelhardt <jengelh@xxxxxxxxxxxxxxx>
Date:   Sat Jan 12 14:39:54 2008 +0100

    [NETFILTER]: Use const
    
    Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxxxxxxx>

diff --git a/net/ipv4/netfilter/ip_tables.c b/net/ipv4/netfilter/ip_tables.c
index f5b66ec..d688147 100644
--- a/net/ipv4/netfilter/ip_tables.c
+++ b/net/ipv4/netfilter/ip_tables.c
@@ -286,7 +286,7 @@ static void trace_packet(struct sk_buff *skb,
 			 unsigned int hook,
 			 const struct net_device *in,
 			 const struct net_device *out,
-			 char *tablename,
+			 const char *tablename,
 			 struct xt_table_info *private,
 			 struct ipt_entry *e)
 {
diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c
index 4ed16d2..e4b5418 100644
--- a/net/ipv6/netfilter/ip6_tables.c
+++ b/net/ipv6/netfilter/ip6_tables.c
@@ -316,7 +316,7 @@ static void trace_packet(struct sk_buff *skb,
 			 unsigned int hook,
 			 const struct net_device *in,
 			 const struct net_device *out,
-			 char *tablename,
+			 const char *tablename,
 			 struct xt_table_info *private,
 			 struct ip6t_entry *e)
 {
-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux