]> The Tcpdump Group git mirrors - libpcap/commitdiff
Add more /* FALLTHROUGH */ comments.
authorGuy Harris <[email protected]>
Fri, 8 Feb 2019 00:20:10 +0000 (16:20 -0800)
committerGuy Harris <[email protected]>
Fri, 8 Feb 2019 00:20:10 +0000 (16:20 -0800)
Clean up white space while we're at it.

gencode.c

index b4e3914de490e960b186bcb1b77ab629a1dced4d..9505cd8a1257f1fc5cb73d600f3d481a3e19a047 100644 (file)
--- a/gencode.c
+++ b/gencode.c
@@ -1340,6 +1340,7 @@ init_linktype(compiler_state_t *cstate, pcap_t *p)
                cstate->off_linkhdr.is_variable = 1;
                /* Fall through, 802.11 doesn't have a variable link
                 * prefix but is otherwise the same. */
+               /* FALLTHROUGH */
 
        case DLT_IEEE802_11:
                /*
@@ -9822,7 +9823,9 @@ gen_mtp3field_code(compiler_state_t *cstate, int mtp3field,
                break;
 
        case MH_OPC:
-               newoff_opc+=3;
+               newoff_opc += 3;
+
+               /* FALLTHROUGH */
         case M_OPC:
                if (cstate->off_opc == OFFSET_NOT_SET)
                        bpf_error(cstate, "'opc' supported only on SS7");
@@ -9866,7 +9869,9 @@ gen_mtp3field_code(compiler_state_t *cstate, int mtp3field,
                break;
 
        case MH_SLS:
-         newoff_sls+=3;
+               newoff_sls += 3;
+               /* FALLTHROUGH */
+
        case M_SLS:
                if (cstate->off_sls == OFFSET_NOT_SET)
                        bpf_error(cstate, "'sls' supported only on SS7");