Mercurial > hg > nginx
comparison src/stream/ngx_stream_map_module.c @ 6831:014905eb7b3d
Map: simplified "map" block parser.
No functional changes.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 08 Dec 2016 17:29:01 +0300 |
parents | 8ed51b02f655 |
children | ec10ce307dc0 |
comparison
equal
deleted
inserted
replaced
6830:6eed5ed31e22 | 6831:014905eb7b3d |
---|---|
390 if (cf->args->nelts == 1 | 390 if (cf->args->nelts == 1 |
391 && ngx_strcmp(value[0].data, "hostnames") == 0) | 391 && ngx_strcmp(value[0].data, "hostnames") == 0) |
392 { | 392 { |
393 ctx->hostnames = 1; | 393 ctx->hostnames = 1; |
394 return NGX_CONF_OK; | 394 return NGX_CONF_OK; |
395 | 395 } |
396 } else if (cf->args->nelts != 2) { | 396 |
397 if (cf->args->nelts != 2) { | |
397 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, | 398 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, |
398 "invalid number of the map parameters"); | 399 "invalid number of the map parameters"); |
399 return NGX_CONF_ERROR; | 400 return NGX_CONF_ERROR; |
400 } | 401 } |
401 | 402 |