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
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to