[nginx] Style: keep return type and function name on different l...

Maxim Dounin mdounin at mdounin.ru
Wed Jul 9 01:49:59 UTC 2014


details:   http://hg.nginx.org/nginx/rev/a1caf3989b49
branches:  
changeset: 5759:a1caf3989b49
user:      Piotr Sikora <piotr at cloudflare.com>
date:      Tue Jul 08 03:03:14 2014 -0700
description:
Style: keep return type and function name on different lines.

Signed-off-by: Piotr Sikora <piotr at cloudflare.com>

diffstat:

 src/os/win32/ngx_service.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (33 lines):

diff --git a/src/os/win32/ngx_service.c b/src/os/win32/ngx_service.c
--- a/src/os/win32/ngx_service.c
+++ b/src/os/win32/ngx_service.c
@@ -16,7 +16,8 @@ SERVICE_TABLE_ENTRY st[] = {
 };
 
 
-ngx_int_t ngx_service(ngx_log_t *log)
+ngx_int_t
+ngx_service(ngx_log_t *log)
 {
     /* primary thread */
 
@@ -32,7 +33,8 @@ ngx_int_t ngx_service(ngx_log_t *log)
 }
 
 
-void service_main(u_int argc, char **argv)
+void
+service_main(u_int argc, char **argv)
 {
     SERVICE_STATUS         status;
     SERVICE_STATUS_HANDLE  service;
@@ -85,7 +87,8 @@ void service_main(u_int argc, char **arg
 }
 
 
-u_int service_handler(u_int control, u_int type, void *data, void *ctx)
+u_int
+service_handler(u_int control, u_int type, void *data, void *ctx)
 {
     /* primary thread */
 



More information about the nginx-devel mailing list