netfilter: xtables: change matches to return error code
authorJan Engelhardt <jengelh@medozas.de>
Tue, 23 Mar 2010 15:35:56 +0000 (16:35 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Thu, 25 Mar 2010 15:55:24 +0000 (16:55 +0100)
The following semantic patch does part of the transformation:
// <smpl>
@ rule1 @
struct xt_match ops;
identifier check;
@@
 ops.checkentry = check;

@@
identifier rule1.check;
@@
 check(...) { <...
-return true;
+return 0;
 ...> }

@@
identifier rule1.check;
@@
 check(...) { <...
-return false;
+return -EINVAL;
 ...> }
// </smpl>

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>

No differences found
This page took 0.026199 seconds and 5 git commands to generate.