diff options
author | Maxim Konovalov <maxim@nginx.com> | 2012-03-19 14:57:29 +0000 |
---|---|---|
committer | Maxim Konovalov <maxim@nginx.com> | 2012-03-19 14:57:29 +0000 |
commit | acf6c79ac732039220f5ba04fec26a92fd9ef192 (patch) | |
tree | 363ed85067887e9a67494aa890c9ed61a9db0f1a /src | |
parent | 926ded6f4c3e7d7fe15c448f202387e07c28bf03 (diff) | |
download | nginx-acf6c79ac732039220f5ba04fec26a92fd9ef192.tar.gz nginx-acf6c79ac732039220f5ba04fec26a92fd9ef192.zip |
For the sake of case/switch code readability, 'fall through'
comments added.
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_parse.c | 1 | ||||
-rw-r--r-- | src/http/ngx_http_upstream.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c index 876a437af..ace6cfe9a 100644 --- a/src/http/ngx_http_parse.c +++ b/src/http/ngx_http_parse.c @@ -1153,6 +1153,7 @@ ngx_http_parse_complex_uri(ngx_http_request_t *r, ngx_uint_t merge_slashes) break; case '+': r->plus_in_uri = 1; + /* fall through */ default: *u++ = ch; break; diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 7e368c1c1..a5ed15c42 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -3312,6 +3312,8 @@ ngx_http_upstream_process_accel_expires(ngx_http_request_t *r, switch (n) { case 0: u->cacheable = 0; + /* fall through */ + case NGX_ERROR: return NGX_OK; @@ -4460,6 +4462,8 @@ ngx_http_upstream_bind_set_slot(ngx_conf_t *cf, ngx_command_t *cmd, case NGX_DECLINED: ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "invalid address \"%V\"", &value[1]); + /* fall through */ + default: return NGX_CONF_ERROR; } |