summaryrefslogtreecommitdiff
path: root/poll
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2009-03-16 16:12:49 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2009-03-16 16:12:49 +0000
commit24846e9fa8315d3666a00359d72a7e9c949d0439 (patch)
tree029b2e74bf605126e40d04fb4d9e027cd79d66b0 /poll
parent0d42bf8512dbac3bdff3d18732d436701de49921 (diff)
downloadlibapr-24846e9fa8315d3666a00359d72a7e9c949d0439.tar.gz
nelts, the number of elements in the pollset, was neither needed
nor properly maintained by these implementations, so axe the related code git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@754924 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poll')
-rw-r--r--poll/unix/epoll.c1
-rw-r--r--poll/unix/kqueue.c1
-rw-r--r--poll/unix/port.c2
3 files changed, 0 insertions, 4 deletions
diff --git a/poll/unix/epoll.c b/poll/unix/epoll.c
index 706d52ebf..326dac7b1 100644
--- a/poll/unix/epoll.c
+++ b/poll/unix/epoll.c
@@ -188,7 +188,6 @@ static apr_status_t impl_pollset_add(apr_pollset_t *pollset,
APR_RING_INSERT_TAIL(&(pollset->p->free_ring), elem, pfd_elem_t, link);
}
else {
- pollset->nelts++;
APR_RING_INSERT_TAIL(&(pollset->p->query_ring), elem, pfd_elem_t, link);
}
pollset_unlock_rings();
diff --git a/poll/unix/kqueue.c b/poll/unix/kqueue.c
index 72be031f3..dbe785a15 100644
--- a/poll/unix/kqueue.c
+++ b/poll/unix/kqueue.c
@@ -177,7 +177,6 @@ static apr_status_t impl_pollset_add(apr_pollset_t *pollset,
}
if (rv == APR_SUCCESS) {
- pollset->nelts++;
APR_RING_INSERT_TAIL(&(pollset->p->query_ring), elem, pfd_elem_t, link);
}
else {
diff --git a/poll/unix/port.c b/poll/unix/port.c
index 7470d89a9..468131f4d 100644
--- a/poll/unix/port.c
+++ b/poll/unix/port.c
@@ -185,13 +185,11 @@ static apr_status_t impl_pollset_add(apr_pollset_t *pollset,
APR_RING_INSERT_TAIL(&(pollset->p->free_ring), elem, pfd_elem_t, link);
}
else {
- pollset->nelts++;
elem->on_query_ring = 1;
APR_RING_INSERT_TAIL(&(pollset->p->query_ring), elem, pfd_elem_t, link);
}
}
else {
- pollset->nelts++;
APR_RING_INSERT_TAIL(&(pollset->p->add_ring), elem, pfd_elem_t, link);
}