Re: [PATCH] ip_tables.h: Add the const qualifier.

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

 



On Wednesday 2011-09-28 09:32, Il Han wrote:

>We need to add the const qualifier before the struct specifier,
>because its value will not be changed.
>Then, the following warning would be removed.
>
>net/ipv4/netfilter/ip_tables.c:183: warning: passing argument 1 of 
>'ipt_get_target' discards qualifiers from pointer target type

gcc-4.6.1_20110801 does not output any such warning - which also 
seems to be correct, since line 183 reads:

	return ipt_get_target((struct ipt_entry *)e);

So in ipt_get_target_c, we already do away with the const qualifier 
before calling ipt_get_target.
--
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