From 6253ca1b62c24bbac8c380d4ae64353b671ad7ef Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 27 May 2003 12:18:54 +0000 Subject: nginx-0.0.1-2003-05-27-16:18:54 import --- src/event/modules/ngx_poll_module.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/event/modules/ngx_poll_module.c') diff --git a/src/event/modules/ngx_poll_module.c b/src/event/modules/ngx_poll_module.c index 5ca6e939e..adb147d81 100644 --- a/src/event/modules/ngx_poll_module.c +++ b/src/event/modules/ngx_poll_module.c @@ -27,7 +27,6 @@ static ngx_event_t **ready_index; static ngx_str_t poll_name = ngx_string("poll"); ngx_event_module_t ngx_poll_module_ctx = { - NGX_EVENT_MODULE, &poll_name, NULL, /* create configuration */ NULL, /* init configuration */ @@ -47,10 +46,10 @@ ngx_event_module_t ngx_poll_module_ctx = { }; ngx_module_t ngx_poll_module = { + NGX_MODULE, &ngx_poll_module_ctx, /* module context */ - 0, /* module index */ NULL, /* module directives */ - NGX_EVENT_MODULE_TYPE, /* module type */ + NGX_EVENT_MODULE, /* module type */ NULL /* init module */ }; @@ -60,7 +59,7 @@ static int ngx_poll_init(ngx_log_t *log) { ngx_event_conf_t *ecf; - ecf = ngx_event_get_conf(ngx_event_module_ctx); + ecf = ngx_event_get_conf(ngx_event_module); ngx_test_null(event_list, ngx_alloc(sizeof(struct pollfd) * ecf->connections, log), -- cgit