[nginx] Style: unneeded casts of cf->args->elts removed.

Maxim Dounin mdounin at mdounin.ru
Mon Oct 19 20:05:20 UTC 2015


details:   http://hg.nginx.org/nginx/rev/7ac57369036c
branches:  
changeset: 6264:7ac57369036c
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Mon Oct 19 23:04:49 2015 +0300
description:
Style: unneeded casts of cf->args->elts removed.

diffstat:

 src/core/nginx.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff --git a/src/core/nginx.c b/src/core/nginx.c
--- a/src/core/nginx.c
+++ b/src/core/nginx.c
@@ -1146,7 +1146,7 @@ ngx_set_user(ngx_conf_t *cf, ngx_command
         return NGX_CONF_OK;
     }
 
-    value = (ngx_str_t *) cf->args->elts;
+    value = cf->args->elts;
 
     ccf->username = (char *) value[1].data;
 
@@ -1352,7 +1352,7 @@ ngx_set_worker_processes(ngx_conf_t *cf,
         return "is duplicate";
     }
 
-    value = (ngx_str_t *) cf->args->elts;
+    value = cf->args->elts;
 
     if (ngx_strcmp(value[1].data, "auto") == 0) {
         ccf->worker_processes = ngx_ncpu;



More information about the nginx-devel mailing list