summaryrefslogtreecommitdiff
path: root/test/ab_apr.c
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>1999-10-10 20:35:00 +0000
committerRyan Bloom <rbb@apache.org>1999-10-10 20:35:00 +0000
commite6ad19defaab7a5454ddd3ffee208e40d8c4dd4d (patch)
tree4a0f75b3f5f04a582eaeb187583f2aa9b1d847f7 /test/ab_apr.c
parentc4898a4a84af4ef9214c5854f066ce93077386d9 (diff)
downloadapr-e6ad19defaab7a5454ddd3ffee208e40d8c4dd4d.tar.gz
Bring network code to the parameter order spec. This means contexts go last,
and result parameters go first. Also fixed a small bug in the Makefile. We should be removing the libs dir when we do a distclean, we are now. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59303 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/ab_apr.c')
-rw-r--r--test/ab_apr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ab_apr.c b/test/ab_apr.c
index b34137e92..b8dbcdd15 100644
--- a/test/ab_apr.c
+++ b/test/ab_apr.c
@@ -683,7 +683,7 @@ static void test(void)
memset(con, 0, concurrency * sizeof(struct connection));
stats = (struct data *)malloc(requests * sizeof(struct data));
- ap_setup_poll(&readbits, cntxt, concurrency);
+ ap_setup_poll(&readbits, concurrency, cntxt);
for (i = 0; i < concurrency; i++) {
ap_make_time(&con[i].start, cntxt);
@@ -761,7 +761,7 @@ static void test(void)
err("select");
for (i = 0; i < concurrency; i++) {
- ap_get_revents(readbits, con[i].aprsock, &rv);
+ ap_get_revents(&rv, con[i].aprsock, readbits);
if ((rv & APR_POLLERR) || (rv & APR_POLLNVAL) || (rv & APR_POLLHUP)) {
bad++;
err_except++;