fd1bbb75556c88a581fc9dfe9faa045578e468ff parent 9f5673174161cc026a6c87f70d9b457e7ad82a80 author Jan Engelhardt 1269015402 +0100 committer Jan Engelhardt 1269529393 +0100 netfilter: xtables: change xt_match.checkentry return type Restore function signatures from bool to int so that we can report memory allocation failures or similar using -ENOMEM rather than always having to pass -EINVAL back. This semantic patch may not be too precise (checking for functions that use xt_mtchk_param rather than functions referenced by xt_match.checkentry), but reviewed, it produced the intended result. // @@ type bool; identifier check, par; @@ -bool check +int check (struct xt_mtchk_param *par) { ... } // Signed-off-by: Jan Engelhardt ”½