Welcome! Log In Create A New Profile

Advanced

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

Maxim Dounin
October 19, 2015 04:06PM
details: http://hg.nginx.org/nginx/rev/7ac57369036c
branches:
changeset: 6264:7ac57369036c
user: Maxim Dounin <mdounin@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;

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

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

Maxim Dounin 539 October 19, 2015 04:06PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 174
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready