Jan Engelhardt bd414ee605 netfilter: xtables: change matches to return error code
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>
2010-03-25 16:55:24 +01:00
..
2008-10-29 12:52:50 -07:00
2010-02-22 16:20:22 -08:00
2010-01-17 19:16:02 -08:00
2010-02-22 16:20:22 -08:00
2009-10-20 18:55:45 -07:00
2010-02-22 16:20:22 -08:00
2009-10-07 14:50:30 -07:00
2009-06-03 02:51:04 -07:00
2009-09-14 17:03:05 -07:00
2010-03-05 13:34:03 -08:00
2010-01-17 19:16:02 -08:00
2009-06-03 02:51:04 -07:00
2010-03-03 01:04:37 -08:00