Mercurial > hg > nginx
changeset 4546:4988fa232629
For the sake of case/switch code readability, 'fall through'
comments added.
author | Maxim Konovalov <maxim@nginx.com> |
---|---|
date | Mon, 19 Mar 2012 14:57:29 +0000 |
parents | ba39af7274ed |
children | 2577c27cbffd |
files | src/http/ngx_http_parse.c src/http/ngx_http_upstream.c |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_parse.c Fri Mar 16 19:15:33 2012 +0000 +++ b/src/http/ngx_http_parse.c Mon Mar 19 14:57:29 2012 +0000 @@ -1153,6 +1153,7 @@ break; case '+': r->plus_in_uri = 1; + /* fall through */ default: *u++ = ch; break;
--- a/src/http/ngx_http_upstream.c Fri Mar 16 19:15:33 2012 +0000 +++ b/src/http/ngx_http_upstream.c Mon Mar 19 14:57:29 2012 +0000 @@ -3312,6 +3312,8 @@ switch (n) { case 0: u->cacheable = 0; + /* fall through */ + case NGX_ERROR: return NGX_OK; @@ -4460,6 +4462,8 @@ case NGX_DECLINED: ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "invalid address \"%V\"", &value[1]); + /* fall through */ + default: return NGX_CONF_ERROR; }