Skip to content

Commit 4826bc9

Browse files
committed
minor coding style fixes.
1 parent 3663ac6 commit 4826bc9

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

src/ngx_http_array_var_module.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ typedef struct {
3434
} ngx_http_array_map_op_data_t;
3535

3636

37-
static char * ngx_http_array_split(ngx_conf_t *cf, ngx_command_t *cmd,
37+
static char *ngx_http_array_split(ngx_conf_t *cf, ngx_command_t *cmd,
3838
void *conf);
39-
static char * ngx_http_array_map(ngx_conf_t *cf, ngx_command_t *cmd,
39+
static char *ngx_http_array_map(ngx_conf_t *cf, ngx_command_t *cmd,
4040
void *conf);
41-
static char * ngx_http_array_map_op(ngx_conf_t *cf, ngx_command_t *cmd,
41+
static char *ngx_http_array_map_op(ngx_conf_t *cf, ngx_command_t *cmd,
4242
void *conf);
43-
static char * ngx_http_array_join(ngx_conf_t *cf, ngx_command_t *cmd,
43+
static char *ngx_http_array_join(ngx_conf_t *cf, ngx_command_t *cmd,
4444
void *conf);
4545
static ngx_int_t ngx_http_array_var_split(ngx_http_request_t *r,
4646
ngx_str_t *res, ngx_http_variable_value_t *v, void *data);
@@ -500,6 +500,7 @@ ngx_http_array_var_split(ngx_http_request_t *r, ngx_str_t *res,
500500
}
501501

502502
done:
503+
503504
dd("pos %p, last %p, end %p", pos, last, end);
504505

505506
s = ngx_array_push(array);
@@ -554,7 +555,7 @@ ngx_http_array_var_map(ngx_http_request_t *r, ngx_str_t *res,
554555

555556
array_it = ngx_http_get_indexed_variable(r, conf->array_it_index);
556557

557-
if ( conf->in_place) {
558+
if (conf->in_place) {
558559
new_array = array;
559560

560561
} else {
@@ -641,7 +642,7 @@ ngx_http_array_var_map_op(ngx_http_request_t *r,
641642

642643
value = array->elts;
643644

644-
if ( conf->in_place) {
645+
if (conf->in_place) {
645646
new_array = array;
646647

647648
} else {

src/ngx_http_array_var_util.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
#ifndef NGX_HTTP_ARRAY_VAR_UTIL_C
2-
#define NGX_HTTP_ARRAY_VAR_UTIL_C
1+
#ifndef NGX_HTTP_ARRAY_VAR_UTIL_H
2+
#define NGX_HTTP_ARRAY_VAR_UTIL_H
3+
34

45
#include <ndk.h>
56
#include <ngx_core.h>
@@ -8,11 +9,11 @@
89

910
ngx_int_t ngx_http_array_var_add_variable(ngx_conf_t *cf, ngx_str_t *name);
1011

11-
u_char * ngx_http_array_var_strlstrn(u_char *s1, u_char *last, u_char *s2,
12-
size_t n);
12+
u_char *ngx_http_array_var_strlstrn(u_char *s1, u_char *last, u_char *s2,
13+
size_t n);
1314

1415
ndk_set_var_value_pt ngx_http_array_var_get_func_from_cmd(u_char *name,
15-
size_t name_len);
16+
size_t name_len);
1617

1718

1819
#ifndef ngx_str3cmp
@@ -22,5 +23,5 @@ ndk_set_var_value_pt ngx_http_array_var_get_func_from_cmd(u_char *name,
2223

2324
#endif /* ngx_str3cmp */
2425

25-
#endif /* NGX_HTTP_ARRAY_VAR_UTIL_C */
26+
#endif /* NGX_HTTP_ARRAY_VAR_UTIL_H */
2627

0 commit comments

Comments
 (0)