Nginx : Follow nginx programming convention - indent.

This commit is contained in:
chenwei 2017-12-14 14:55:36 +08:00
parent acc0462acd
commit df18ef7de7
1 changed files with 37 additions and 37 deletions

View File

@ -415,55 +415,55 @@ extern ngx_event_actions_t ngx_ff_host_event_actions;
#if (NGX_HAVE_FSTACK) #if (NGX_HAVE_FSTACK)
static inline ngx_int_t static inline ngx_int_t
ngx_add_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags) { ngx_add_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags) {
if (1 == ev->belong_to_host) { if (1 == ev->belong_to_host) {
return ngx_ff_host_event_actions.add(ev, event, flags); return ngx_ff_host_event_actions.add(ev, event, flags);
} else { } else {
return ngx_event_actions.add(ev, event, flags); return ngx_event_actions.add(ev, event, flags);
}
} }
}
static inline ngx_int_t static inline ngx_int_t
ngx_del_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags) { ngx_del_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags) {
if (1 == ev->belong_to_host) { if (1 == ev->belong_to_host) {
return ngx_ff_host_event_actions.del(ev, event, flags); return ngx_ff_host_event_actions.del(ev, event, flags);
} else { } else {
return ngx_event_actions.del(ev, event, flags); return ngx_event_actions.del(ev, event, flags);
}
} }
}
static inline ngx_int_t ngx_add_conn(ngx_connection_t *c) static inline ngx_int_t ngx_add_conn(ngx_connection_t *c)
{ {
return ngx_event_actions.add_conn(c); return ngx_event_actions.add_conn(c);
} }
static inline ngx_int_t ngx_del_conn( static inline ngx_int_t ngx_del_conn(
ngx_connection_t *c, ngx_uint_t flags) { ngx_connection_t *c, ngx_uint_t flags) {
return ngx_event_actions.del_conn(c, flags); return ngx_event_actions.del_conn(c, flags);
} }
static inline ngx_int_t ngx_notify(ngx_event_handler_pt handler) { static inline ngx_int_t ngx_notify(ngx_event_handler_pt handler) {
return ngx_event_actions.notify(handler); return ngx_event_actions.notify(handler);
} }
static inline ngx_int_t ngx_process_events( static inline ngx_int_t ngx_process_events(
ngx_cycle_t *cycle, ngx_msec_t timer, ngx_uint_t flags) ngx_cycle_t *cycle, ngx_msec_t timer, ngx_uint_t flags)
{ {
return ngx_event_actions.process_events(cycle, timer, flags); return ngx_event_actions.process_events(cycle, timer, flags);
} }
#else #else
#define ngx_process_events ngx_event_actions.process_events #define ngx_process_events ngx_event_actions.process_events
#define ngx_done_events ngx_event_actions.done #define ngx_done_events ngx_event_actions.done
#define ngx_add_event ngx_event_actions.add #define ngx_add_event ngx_event_actions.add
#define ngx_del_event ngx_event_actions.del #define ngx_del_event ngx_event_actions.del
#define ngx_add_conn ngx_event_actions.add_conn #define ngx_add_conn ngx_event_actions.add_conn
#define ngx_del_conn ngx_event_actions.del_conn #define ngx_del_conn ngx_event_actions.del_conn
#define ngx_notify ngx_event_actions.notify #define ngx_notify ngx_event_actions.notify
#endif #endif