]> git.kaiwu.me - nginx.git/commit
Events: fixed -Wzero-as-null-pointer-constant warnings in kqueue.
authorSergey Kandaurov <pluknet@nginx.com>
Tue, 8 Jul 2025 18:45:33 +0000 (22:45 +0400)
committerSergey Kandaurov <s.kandaurov@f5.com>
Tue, 23 Dec 2025 18:40:33 +0000 (22:40 +0400)
commit2009d46d6d1a7840eae1e70c1178145d420acf30
treef3433ea133e20f5b88062d2ddffa51cdb569dc10
parent2787d67e89ea8642f658d895a37ecb9987abd3f8
Events: fixed -Wzero-as-null-pointer-constant warnings in kqueue.

The kevent udata field is special in that we maintain compatibility
with NetBSD versions that predate using the "void *" type.

The fix is to cast to intermediate uintptr_t that is casted back to
"void *" where appropriate.
src/event/modules/ngx_kqueue_module.c