[Cocci] struct-member-referencing changes seems to ignore struct
arrays
Jan Engelhardt
jengelh at medozas.de
Thu Mar 25 16:21:57 CET 2010
Hi,
The following spatch would change the function signature of
checkentry functions in Netfilter/Xtables from bool to int. However,
spatch only considers singular "struct xt_match ops" and misses out
on net/netfilter/xt_tcpudp.c's use of "struct xt_match ops[]". Is a
different syntax needed in this case?
// <smpl>
@ rule1 @
struct xt_match ops;
identifier check;
@@
ops.checkentry = check;
@@
type bool;
identifier rule1.check;
@@
-bool check
+int check
(...){...}
// </smpl>
thanks,
Jan
More information about the Cocci
mailing list