]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Put "{" at end of line with "switch" to keep a consistent style
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 19 Apr 2023 19:55:53 +0000 (21:55 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 19 Apr 2023 20:03:17 +0000 (22:03 +0200)
[skip ci]

print-isoclns.c
print-radius.c
print-sctp.c
print-tipc.c
print-usb.c

index a27f1c6d4b42ba83c6be09efe923b713133e2881..f506d4d9fadbb785d71939d877ee46f459c2d2a7 100644 (file)
@@ -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;
index 825724bae05aad04f4b89125009b52e4f509faf6..b84021a796c10b11cb938552734c5fdee61abd76 100644 (file)
@@ -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);
index cc5bee4ff6f4ebab7cb871e62bd433017dbd2fca..2b340afae43f7425970eccecd3f866a5b2e195f3 100644 (file)
@@ -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;
index 54179a4ea605c6be1785d07d197ffe59c13fbd43..f490ce28fee837a1f4f474097b211cabaa2ba0a6 100644 (file)
@@ -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:
index 3f5937ba16cab5037183b22ad9b2c45f8d74eb22..88e178e588a875d05c6d686db1a619e7332504e0 100644 (file)
@@ -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;