From: Francois-Xavier Le Bail Date: Wed, 19 Apr 2023 19:55:53 +0000 (+0200) Subject: Put "{" at end of line with "switch" to keep a consistent style X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/ff4af2069a7d1f56cbcd4292e3d25ddb41a19b0b Put "{" at end of line with "switch" to keep a consistent style [skip ci] --- diff --git a/print-isoclns.c b/print-isoclns.c index a27f1c6d..f506d4d9 100644 --- a/print-isoclns.c +++ b/print-isoclns.c @@ -1508,8 +1508,7 @@ isis_print_mt_port_cap_subtlv(netdissect_options *ndo, /* Make sure the entire subTLV is in the captured data */ ND_TCHECK_LEN(tptr, stlv_len); - switch (stlv_type) - { + switch (stlv_type) { case ISIS_SUBTLV_SPB_MCID: { if (stlv_len < ISIS_SUBTLV_SPB_MCID_MIN_LEN) @@ -1635,8 +1634,7 @@ isis_print_mt_capability_subtlv(netdissect_options *ndo, /* Make sure the entire subTLV is in the captured data */ ND_TCHECK_LEN(tptr, stlv_len); - switch (stlv_type) - { + switch (stlv_type) { case ISIS_SUBTLV_SPB_INSTANCE: if (stlv_len < ISIS_SUBTLV_SPB_INSTANCE_MIN_LEN) goto subtlv_too_short; diff --git a/print-radius.c b/print-radius.c index 825724ba..b84021a7 100644 --- a/print-radius.c +++ b/print-radius.c @@ -773,8 +773,7 @@ print_attr_string(netdissect_options *ndo, ND_TCHECK_LEN(data, length); - switch(attr_code) - { + switch(attr_code) { case TUNNEL_PASS: if (length < 3) goto trunc; @@ -1016,8 +1015,7 @@ print_attr_address(netdissect_options *ndo, return; } - switch(attr_code) - { + switch(attr_code) { case FRM_IPADDR: case LOG_IPHOST: if (GET_BE_U_4(data) == 0xFFFFFFFF ) @@ -1312,8 +1310,7 @@ print_attr_strange(netdissect_options *ndo, u_short len_data; u_int error_cause_value; - switch(attr_code) - { + switch(attr_code) { case ARAP_PASS: if (length != 16) { ND_PRINT("ERROR: length %u != 16", length); diff --git a/print-sctp.c b/print-sctp.c index cc5bee4f..2b340afa 100644 --- a/print-sctp.c +++ b/print-sctp.c @@ -550,8 +550,7 @@ sctp_print(netdissect_options *ndo, chunkID = GET_U_1(chunkDescPtr->chunkID); ND_PRINT("[%s] ", tok2str(sctp_chunkid_str, "Unknown chunk type: 0x%x", chunkID)); - switch (chunkID) - { + switch (chunkID) { case SCTP_DATA : { const struct sctpDataPart *dataHdrPtr; diff --git a/print-tipc.c b/print-tipc.c index 54179a4e..f490ce28 100644 --- a/print-tipc.c +++ b/print-tipc.c @@ -327,8 +327,7 @@ tipc_print(netdissect_options *ndo, const u_char *bp, u_int length _U_, w0 = GET_BE_U_4(ap->w0); user = TIPC_USER(w0); - switch (user) - { + switch (user) { case TIPC_USER_LOW_IMPORTANCE: case TIPC_USER_MEDIUM_IMPORTANCE: case TIPC_USER_HIGH_IMPORTANCE: diff --git a/print-usb.c b/print-usb.c index 3f5937ba..88e178e5 100644 --- a/print-usb.c +++ b/print-usb.c @@ -148,8 +148,7 @@ get_direction(int transfer_type, int event_type) case URB_BULK: case URB_CONTROL: case URB_ISOCHRONOUS: - switch(event_type) - { + switch(event_type) { case URB_SUBMIT: direction = 2; break; @@ -162,8 +161,7 @@ get_direction(int transfer_type, int event_type) } break; case URB_INTERRUPT: - switch(event_type) - { + switch(event_type) { case URB_SUBMIT: direction = 1; break; @@ -196,8 +194,7 @@ usb_header_print(netdissect_options *ndo, const pcap_usb_header *uh) ND_PRINT(" "); transfer_type = GET_U_1(uh->transfer_type); - switch(transfer_type) - { + switch(transfer_type) { case URB_ISOCHRONOUS: ND_PRINT("ISOCHRONOUS"); break; @@ -215,8 +212,7 @@ usb_header_print(netdissect_options *ndo, const pcap_usb_header *uh) } event_type = GET_U_1(uh->event_type); - switch(event_type) - { + switch(event_type) { case URB_SUBMIT: ND_PRINT(" SUBMIT"); break;