From 2d8b492e75f09fa7193149f7969ddfc2446c88e8 Mon Sep 17 00:00:00 2001 From: "Yichun Zhang (agentzh)" Date: Mon, 22 Jun 2015 22:01:55 +0800 Subject: [PATCH] minor coding style fixes. --- src/ngx_http_rds_json_filter_module.c | 14 +++++++------- src/ngx_http_rds_json_output.c | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/ngx_http_rds_json_filter_module.c b/src/ngx_http_rds_json_filter_module.c index 6290c0f..1a26583 100644 --- a/src/ngx_http_rds_json_filter_module.c +++ b/src/ngx_http_rds_json_filter_module.c @@ -39,24 +39,24 @@ ngx_http_output_header_filter_pt ngx_http_rds_json_next_header_filter; ngx_http_output_body_filter_pt ngx_http_rds_json_next_body_filter; -static void * ngx_http_rds_json_create_main_conf(ngx_conf_t *cf); +static void *ngx_http_rds_json_create_main_conf(ngx_conf_t *cf); static char *ngx_http_rds_json_ret(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); static void *ngx_http_rds_json_create_loc_conf(ngx_conf_t *cf); static char *ngx_http_rds_json_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child); static ngx_int_t ngx_http_rds_json_filter_init(ngx_conf_t *cf); -static char * ngx_http_rds_json_root(ngx_conf_t *cf, ngx_command_t *cmd, +static char *ngx_http_rds_json_root(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); -static char * ngx_http_rds_json_success_property(ngx_conf_t *cf, +static char *ngx_http_rds_json_success_property(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); -static char * ngx_http_rds_json_user_property(ngx_conf_t *cf, +static char *ngx_http_rds_json_user_property(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); -static char * ngx_http_rds_json_errcode_key(ngx_conf_t *cf, ngx_command_t *cmd, +static char *ngx_http_rds_json_errcode_key(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); -static char * ngx_http_rds_json_errstr_key(ngx_conf_t *cf, ngx_command_t *cmd, +static char *ngx_http_rds_json_errstr_key(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); -static char * ngx_http_rds_json(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); +static char *ngx_http_rds_json(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); static ngx_command_t ngx_http_rds_json_commands[] = { diff --git a/src/ngx_http_rds_json_output.c b/src/ngx_http_rds_json_output.c index 9929744..f266808 100644 --- a/src/ngx_http_rds_json_output.c +++ b/src/ngx_http_rds_json_output.c @@ -17,11 +17,11 @@ #include -static u_char * ngx_http_rds_json_request_mem(ngx_http_request_t *r, +static u_char *ngx_http_rds_json_request_mem(ngx_http_request_t *r, ngx_http_rds_json_ctx_t *ctx, size_t len); static ngx_int_t ngx_http_rds_json_get_buf(ngx_http_request_t *r, ngx_http_rds_json_ctx_t *ctx); -static u_char * ngx_http_rds_json_get_postponed(ngx_http_request_t *r, +static u_char *ngx_http_rds_json_get_postponed(ngx_http_request_t *r, ngx_http_rds_json_ctx_t *ctx, size_t len); static ngx_int_t ngx_http_rds_json_submit_mem(ngx_http_request_t *r, ngx_http_rds_json_ctx_t *ctx, size_t len, unsigned last_buf);