summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2012-05-19 23:49:37 +0200
committerJan Engelhardt <jengelh@medozas.de>2012-05-19 23:49:37 +0200
commit9fd83f28e145993fe9a34953566d5ce2d03a76f7 (patch)
treee2a60dec37b8a55960ec4b4e102a6f22bc006abf
parent08f5d2318442a6a3bc19d732e4743e6685673077 (diff)
qa: change an if to elseif
The compiler is probably smart enough to see that the type cannot change, but make an "else" out of it, just for fun. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
-rw-r--r--qa/ct_events_reliable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/ct_events_reliable.c b/qa/ct_events_reliable.c
index 1c8e194..b51d0e5 100644
--- a/qa/ct_events_reliable.c
+++ b/qa/ct_events_reliable.c
@@ -15,7 +15,7 @@ static int event_cb(enum nf_conntrack_msg_type type,
{
if (type == NFCT_T_NEW)
new++;
- if (type == NFCT_T_UPDATE)
+ else if (type == NFCT_T_UPDATE)
update++;
else if (type == NFCT_T_DESTROY)
destroy++;