summaryrefslogtreecommitdiff
path: root/poll
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2022-06-22 23:58:09 +0000
committerYann Ylavic <ylavic@apache.org>2022-06-22 23:58:09 +0000
commit17d0e7db3955e14c92c88d34a726b82a2217805a (patch)
treea8824361044dec5257817f599ad7a1139474bb44 /poll
parent04eca6d69eebc60855f057690d6ac8b6049e2ebe (diff)
downloadapr-17d0e7db3955e14c92c88d34a726b82a2217805a.tar.gz
poll: kqueue: Fix -Wincompatible-pointer-types-discards-qualifiers
* poll/unix/kqueue.c(impl_pollset_add): Cast to (void *) to "break" constantnes of descriptor. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902178 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poll')
-rw-r--r--poll/unix/kqueue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/poll/unix/kqueue.c b/poll/unix/kqueue.c
index aa4251f1b..7fbfbb882 100644
--- a/poll/unix/kqueue.c
+++ b/poll/unix/kqueue.c
@@ -171,7 +171,7 @@ static apr_status_t impl_pollset_add(apr_pollset_t *pollset,
if (descriptor->reqevents & APR_POLLIN) {
if (pollset->flags & APR_POLLSET_NOCOPY) {
EV_SET(&pollset->p->kevent, fd, EVFILT_READ, EV_ADD, 0, 0,
- descriptor);
+ (void *)descriptor);
}
else {
EV_SET(&pollset->p->kevent, fd, EVFILT_READ, EV_ADD, 0, 0,
@@ -187,7 +187,7 @@ static apr_status_t impl_pollset_add(apr_pollset_t *pollset,
if (descriptor->reqevents & APR_POLLOUT && rv == APR_SUCCESS) {
if (pollset->flags & APR_POLLSET_NOCOPY) {
EV_SET(&pollset->p->kevent, fd, EVFILT_WRITE, EV_ADD, 0, 0,
- descriptor);
+ (void *)descriptor);
}
else {
EV_SET(&pollset->p->kevent, fd, EVFILT_WRITE, EV_ADD, 0, 0,