diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-03-13 21:40:44 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-03-13 21:40:44 +0100 |
commit | e36d5e5750801f764a1a899891d4da70934074e7 (patch) | |
tree | dc3d57f7bfb8a6aedee135c8de955327d96cff95 | |
parent | 5dda1cf738b529d25b22344f9cd1851c8bdab713 (diff) | |
download | conntrack-tools-e36d5e5750801f764a1a899891d4da70934074e7.tar.gz conntrack-tools-e36d5e5750801f764a1a899891d4da70934074e7.zip |
sync-mode: save one tab inside switch, cleanup
This patch saves one tab in the code.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | src/sync-mode.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/sync-mode.c b/src/sync-mode.c index 04b2171..8fb933f 100644 --- a/src/sync-mode.c +++ b/src/sync-mode.c @@ -57,20 +57,20 @@ do_channel_handler_step(int if_idx, struct nethdr *net, size_t remain) } switch (STATE_SYNC(sync)->recv(net)) { - case MSG_DATA: - mcast_change_current_link(if_idx); - break; - case MSG_DROP: - return; - case MSG_CTL: - mcast_change_current_link(if_idx); - return; - case MSG_BAD: - STATE_SYNC(error).msg_rcv_malformed++; - STATE_SYNC(error).msg_rcv_bad_header++; - return; - default: - break; + case MSG_DATA: + mcast_change_current_link(if_idx); + break; + case MSG_CTL: + mcast_change_current_link(if_idx); + return; + case MSG_BAD: + STATE_SYNC(error).msg_rcv_malformed++; + STATE_SYNC(error).msg_rcv_bad_header++; + return; + case MSG_DROP: + return; + default: + break; } if (net->type > NET_T_STATE_MAX) { |