Welcome! Log In Create A New Profile

Advanced

[nginx] Added missing "static" specifiers found by gcc -Wtraditional.

March 06, 2017 03:14AM
details: http://hg.nginx.org/nginx/rev/fbdaad9b0e7b
branches:
changeset: 6923:fbdaad9b0e7b
user: Ruslan Ermilov <ru@nginx.com>
date: Mon Mar 06 11:09:47 2017 +0300
description:
Added missing "static" specifiers found by gcc -Wtraditional.

diffstat:

src/event/modules/ngx_devpoll_module.c | 2 +-
src/event/modules/ngx_eventport_module.c | 2 +-
src/http/ngx_http_upstream.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r a72886067bbb -r fbdaad9b0e7b src/event/modules/ngx_devpoll_module.c
--- a/src/event/modules/ngx_devpoll_module.c Thu Mar 02 08:46:00 2017 -0500
+++ b/src/event/modules/ngx_devpoll_module.c Mon Mar 06 11:09:47 2017 +0300
@@ -336,7 +336,7 @@ ngx_devpoll_set_event(ngx_event_t *ev, n
}


-ngx_int_t
+static ngx_int_t
ngx_devpoll_process_events(ngx_cycle_t *cycle, ngx_msec_t timer,
ngx_uint_t flags)
{
diff -r a72886067bbb -r fbdaad9b0e7b src/event/modules/ngx_eventport_module.c
--- a/src/event/modules/ngx_eventport_module.c Thu Mar 02 08:46:00 2017 -0500
+++ b/src/event/modules/ngx_eventport_module.c Mon Mar 06 11:09:47 2017 +0300
@@ -432,7 +432,7 @@ ngx_eventport_notify(ngx_event_handler_p
}


-ngx_int_t
+static ngx_int_t
ngx_eventport_process_events(ngx_cycle_t *cycle, ngx_msec_t timer,
ngx_uint_t flags)
{
diff -r a72886067bbb -r fbdaad9b0e7b src/http/ngx_http_upstream.c
--- a/src/http/ngx_http_upstream.c Thu Mar 02 08:46:00 2017 -0500
+++ b/src/http/ngx_http_upstream.c Mon Mar 06 11:09:47 2017 +0300
@@ -5554,7 +5554,7 @@ ngx_http_upstream_cookie_variable(ngx_ht

#if (NGX_HTTP_CACHE)

-ngx_int_t
+static ngx_int_t
ngx_http_upstream_cache_status(ngx_http_request_t *r,
ngx_http_variable_value_t *v, uintptr_t data)
{
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Added missing "static" specifiers found by gcc -Wtraditional.

ru@nginx.com 714 March 06, 2017 03:14AM



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

Online Users

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