Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix fallthrough warnings
[src/app-framework-binder.git]
/
src
/
websock.c
diff --git
a/src/websock.c
b/src/websock.c
index
1b127c8
..
0bbd56a
100644
(file)
--- a/
src/websock.c
+++ b/
src/websock.c
@@
-312,6
+312,7
@@
loop:
ws->lenhead = 0;
ws->szhead = 2;
ws->state = STATE_START;
ws->lenhead = 0;
ws->szhead = 2;
ws->state = STATE_START;
+ /*@fallthrough@*/
case STATE_START:
/* read the header */
case STATE_START:
/* read the header */
@@
-342,12
+343,15
@@
loop:
switch (FRAME_GET_PAYLOAD_LEN(ws->header[1])) {
case 127:
ws->szhead += 6;
switch (FRAME_GET_PAYLOAD_LEN(ws->header[1])) {
case 127:
ws->szhead += 6;
+ /*@fallthrough@*/
case 126:
ws->szhead += 2;
case 126:
ws->szhead += 2;
+ /*@fallthrough@*/
default:
ws->szhead += 4 * FRAME_GET_MASK(ws->header[1]);
}
ws->state = STATE_LENGTH;
default:
ws->szhead += 4 * FRAME_GET_MASK(ws->header[1]);
}
ws->state = STATE_LENGTH;
+ /*@fallthrough@*/
case STATE_LENGTH:
/* continue to read the header */
case STATE_LENGTH:
/* continue to read the header */