]> 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)
committerpluknet <pluknet@nginx.com>
Fri, 11 Jul 2025 12:25:51 +0000 (16:25 +0400)
commit0daaba5c54aeeddffff400bfc77a08a1fd71b757
tree00c27f40fc05ada68bc37554200fb802d1742e81
parenta5ca38f30392e93aadc32cf5955c29fddcaa3871
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