summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_router.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2021-03-02 18:31:03 +0300
committerMax Romanov <max.romanov@nginx.com>2021-03-02 18:31:03 +0300
commit73ac0496feb38ef2098163847206d304cf2c9a73 (patch)
tree9769607a02ceaa01fc8f4656731297760710da9a /src/nxt_router.c
parentfddde539c9cde818857f46c24eaa7d4e57eb9b44 (diff)
downloadunit-73ac0496feb38ef2098163847206d304cf2c9a73.tar.gz
unit-73ac0496feb38ef2098163847206d304cf2c9a73.tar.bz2
Fixing warnings on Solaris.
pthread_t on Solaris is an integer type with size not equal to pointer size. To avoid warnings, type casts to and from pointer needs to be done via uintptr_t type. This change originally proposed by Juraj Lutter <juraj@lutter.sk>.
Diffstat (limited to 'src/nxt_router.c')
-rw-r--r--src/nxt_router.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_router.c b/src/nxt_router.c
index 03fe2a6c..4be4197a 100644
--- a/src/nxt_router.c
+++ b/src/nxt_router.c
@@ -3726,7 +3726,7 @@ nxt_router_thread_exit_handler(nxt_task_t *task, void *obj, void *data)
nxt_event_engine_t *engine;
nxt_thread_handle_t handle;
- handle = (nxt_thread_handle_t) obj;
+ handle = (nxt_thread_handle_t) (uintptr_t) obj;
link = data;
nxt_thread_wait(handle);