]> 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]>
Thu, 20 Apr 2023 07:12:08 +0000 (09:12 +0200)
[skip ci]

(cherry picked from commit ff4af2069a7d1f56cbcd4292e3d25ddb41a19b0b)

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

index b1986b3f97d23508d3bd9553b378079bdb5f0395..648ae3e0974a33cf4ca0d8f61617738202630ee7 100644 (file)
@@ -1507,8 +1507,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)
@@ -1634,8 +1633,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 c22475db5653ecf2440ac19219ca4161cdf44daa..bdbab16c2724c9aec079635f1a7f8541593f6ed3 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 ad0f7851889a5cc32dabb16e0f786dc8dc020be6..e000ed7d478a0f26a1c4cfe4ac2c717f2146ca4d 100644 (file)
@@ -554,8 +554,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;