Welcome! Log In Create A New Profile

Advanced

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

Maxim Dounin
July 08, 2014 09:52PM
details: http://hg.nginx.org/nginx/rev/a1caf3989b49
branches:
changeset: 5759:a1caf3989b49
user: Piotr Sikora <piotr@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@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 */


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

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

Maxim Dounin 316 July 08, 2014 09:52PM



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

Online Users

Guests: 290
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