summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-03-13 21:40:44 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2009-03-13 21:40:44 +0100
commite36d5e5750801f764a1a899891d4da70934074e7 (patch)
treedc3d57f7bfb8a6aedee135c8de955327d96cff95 /src
parent5dda1cf738b529d25b22344f9cd1851c8bdab713 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/sync-mode.c28
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) {