]> git.ipfire.org Git - thirdparty/iptables.git/commit
src: unclutter command_default function
authorJan Engelhardt <jengelh@medozas.de>
Mon, 7 Feb 2011 02:20:02 +0000 (03:20 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Mon, 7 Feb 2011 02:31:50 +0000 (03:31 +0100)
commit94e247b80a0c28140056ee07ea24e54ca5dbebaf
treeb32d1dd7639e562240f09c3b574737f168ca544e
parentacef6043f647806096c41294b00472f6ce7462d7
src: unclutter command_default function

(Essentially, 5 levels of indentation have been stripped compared to the
original layout, and this is surely a result that looks a lot better
than it did before.)

Things to note:

1. If the m->parse call succeeded, we can return from the function and
do not need to go through the other code. As such, "m" is guaranteed to
be useless at the end of the match loop, and so, conditions can be
removed.

2. Since the per-extension parse function only ever get their own option
codes (since v1.4.10-26-gd09b6d5), their return value no longer has a
meaning and can be ignored.

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