Skip to content

Commit

Permalink
netfilter: fix description of expected checkentry return code on xt_t…
Browse files Browse the repository at this point in the history
…arget

The text describing the return codes that are expected on calls to
checkentry() was incorrect.  Instead of returning true or false, or an error
code, it should return 0 or an error code.

Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
  • Loading branch information
Luciano Coelho authored and Patrick McHardy committed May 20, 2010
1 parent fc35077 commit 7ea7b85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/netfilter/x_tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ struct xt_target {
/* Called when user tries to insert an entry of this type:
hook_mask is a bitmask of hooks from which it can be
called. */
/* Should return true or false, or an error code (-Exxxx). */
/* Should return 0 on success or an error code otherwise (-Exxxx). */
int (*checkentry)(const struct xt_tgchk_param *);

/* Called when entry of this type deleted. */
Expand Down

0 comments on commit 7ea7b85

Please sign in to comment.