diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-07-31 16:46:23 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-07-31 16:46:23 +0200 |
commit | 513913fac6d36ca3b09500865eafa8836e806a94 (patch) | |
tree | 67e6d6659db80bba18ca86827b866929a4cdcae3 /src/websock.c | |
parent | ae624bd468fa117adb66a5f5cc9938eae8813d1f (diff) |
Fix fallthrough warnings
Change-Id: Ibe8e0b4e59ad4d5f0b0cca82ccdb3d0f035b0501
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/websock.c')
-rw-r--r-- | src/websock.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/websock.c b/src/websock.c index 1b127c8b..0bbd56ac 100644 --- a/src/websock.c +++ b/src/websock.c @@ -312,6 +312,7 @@ loop: ws->lenhead = 0; ws->szhead = 2; ws->state = STATE_START; + /*@fallthrough@*/ case STATE_START: /* read the header */ @@ -342,12 +343,15 @@ loop: switch (FRAME_GET_PAYLOAD_LEN(ws->header[1])) { case 127: ws->szhead += 6; + /*@fallthrough@*/ case 126: ws->szhead += 2; + /*@fallthrough@*/ default: ws->szhead += 4 * FRAME_GET_MASK(ws->header[1]); } ws->state = STATE_LENGTH; + /*@fallthrough@*/ case STATE_LENGTH: /* continue to read the header */ |