diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-03-14 15:09:17 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-03-14 15:09:17 +0300 |
commit | 612c083579a78c9d51fa9976e46f45b6cbaf93db (patch) | |
tree | af98c29218956c418c3e51dfbdb42de66c913acf /src | |
parent | 6f2c9acd1841ca20a1388b34aef64e9f00459090 (diff) | |
download | unit-612c083579a78c9d51fa9976e46f45b6cbaf93db.tar.gz unit-612c083579a78c9d51fa9976e46f45b6cbaf93db.tar.bz2 |
Fixed unit tests building broken by the previous commit.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_application.c | 2 | ||||
-rw-r--r-- | src/nxt_application.h | 3 | ||||
-rw-r--r-- | src/nxt_python_wsgi.c | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/src/nxt_application.c b/src/nxt_application.c index ed661ce7..f45d35c9 100644 --- a/src/nxt_application.c +++ b/src/nxt_application.c @@ -62,7 +62,7 @@ static nxt_int_t nxt_app_http_process_headers(nxt_app_request_t *r); static const nxt_event_conn_state_t nxt_app_delivery_write_state; -static nxt_application_module_t *nxt_app = &nxt_python_module; +nxt_application_module_t *nxt_app; static nxt_thread_mutex_t nxt_app_mutex; static nxt_thread_cond_t nxt_app_cond; diff --git a/src/nxt_application.h b/src/nxt_application.h index ebe45e87..c2619ded 100644 --- a/src/nxt_application.h +++ b/src/nxt_application.h @@ -50,7 +50,8 @@ typedef struct { } nxt_application_module_t; -extern nxt_application_module_t nxt_python_module; +extern nxt_application_module_t *nxt_app; + nxt_int_t nxt_app_http_read_body(nxt_app_request_t *r, u_char *data, diff --git a/src/nxt_python_wsgi.c b/src/nxt_python_wsgi.c index 1b838041..30bd4939 100644 --- a/src/nxt_python_wsgi.c +++ b/src/nxt_python_wsgi.c @@ -242,6 +242,8 @@ nxt_python_wsgi_init(nxt_thread_t *thr, nxt_runtime_t *rt) Py_DECREF(obj); + nxt_app = &nxt_python_module; + return NXT_OK; fail: |