summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2022-06-22 23:58:09 +0000
committerylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2022-06-22 23:58:09 +0000
commit85c5b536e3b7e2d1a6a1fd5f6353d8751b21a2e4 (patch)
treea8824361044dec5257817f599ad7a1139474bb44
parent401a1b20e83ea429d0c4c1ba857a242b2ae4ca2c (diff)
downloadlibapr-85c5b536e3b7e2d1a6a1fd5f6353d8751b21a2e4.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. Follow up to r1902178. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902178 13f79535-47bb-0310-9956-ffa450edef68
-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,