From 4651ad352e6afabea33ed46bca9fa49fab528d09 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 10 Aug 2016 10:25:51 +0200 Subject: trafgen: proto: Add space between switch statement and opening parenthesis Follow common coding style and use: switch (...) instead of: switch(...) Signed-off-by: Tobias Klauser --- trafgen_l2.c | 2 +- trafgen_l3.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/trafgen_l2.c b/trafgen_l2.c index 2e411e6..1863332 100644 --- a/trafgen_l2.c +++ b/trafgen_l2.c @@ -19,7 +19,7 @@ static struct proto_field eth_fields[] = { static uint16_t pid_to_eth(enum proto_id pid) { - switch(pid) { + switch (pid) { case PROTO_ARP: return ETH_P_ARP; case PROTO_IP4: diff --git a/trafgen_l3.c b/trafgen_l3.c index ad58270..1cdd041 100644 --- a/trafgen_l3.c +++ b/trafgen_l3.c @@ -63,7 +63,7 @@ static void ipv4_set_next_proto(struct proto_hdr *hdr, enum proto_id pid) { uint8_t ip_proto; - switch(pid) { + switch (pid) { case PROTO_IP4: ip_proto = IPPROTO_IPIP; break; @@ -129,7 +129,7 @@ static void ipv6_set_next_proto(struct proto_hdr *hdr, enum proto_id pid) { uint8_t ip_proto; - switch(pid) { + switch (pid) { case PROTO_ICMP6: ip_proto = IPPROTO_ICMPV6; break; -- cgit v1.2.3-54-g00ecf k net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode: