Skip to content
Snippets Groups Projects
Commit d6b00a53 authored by Jan Engelhardt's avatar Jan Engelhardt
Browse files

netfilter: xtables: change targets to return error code


Part of the transition of done by this semantic patch:
// <smpl>
@ rule1 @
struct xt_target 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: default avatarJan Engelhardt <jengelh@medozas.de>
parent bd414ee6
No related branches found
No related tags found
Loading
Showing
with 76 additions and 68 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment