Skip to content

Commit

Permalink
Added missing fall through comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wangfakang committed Feb 1, 2018
1 parent c8acf2a commit b651447
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/ngx_murmurhash.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ ngx_murmur_hash2(u_char *data, size_t len)
switch (len) {
case 3:
h ^= data[2] << 16;
/* fall through */
case 2:
h ^= data[1] << 8;
/* fall through */
case 1:
h ^= data[0];
h *= 0x5bd1e995;
Expand Down
3 changes: 3 additions & 0 deletions src/http/ngx_http_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -1382,6 +1382,7 @@ ngx_http_parse_complex_uri(ngx_http_request_t *r, ngx_uint_t merge_slashes)
goto done;
case '+':
r->plus_in_uri = 1;
/* fall through */
default:
state = sw_usual;
*u++ = ch;
Expand Down Expand Up @@ -1423,6 +1424,7 @@ ngx_http_parse_complex_uri(ngx_http_request_t *r, ngx_uint_t merge_slashes)
goto done;
case '+':
r->plus_in_uri = 1;
/* fall through */
default:
state = sw_usual;
*u++ = ch;
Expand Down Expand Up @@ -1470,6 +1472,7 @@ ngx_http_parse_complex_uri(ngx_http_request_t *r, ngx_uint_t merge_slashes)
goto done;
case '+':
r->plus_in_uri = 1;
/* fall through */
default:
state = sw_usual;
*u++ = ch;
Expand Down
1 change: 1 addition & 0 deletions src/os/unix/ngx_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ ngx_signal_handler(int signo)
break;
}
ngx_debug_quit = 1;
/* fall through */
case ngx_signal_value(NGX_SHUTDOWN_SIGNAL):
ngx_quit = 1;
action = ", shutting down";
Expand Down

0 comments on commit b651447

Please sign in to comment.