summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorgstein <gstein@13f79535-47bb-0310-9956-ffa450edef68>2000-04-24 13:10:46 +0000
committergstein <gstein@13f79535-47bb-0310-9956-ffa450edef68>2000-04-24 13:10:46 +0000
commitd0f96d7b1a2704efb3ceb45e03759c6f44913dbb (patch)
tree8a76e3523a561f5e0e13e64f174d77d45f0f0141 /test
parent52619a7f1f5139d02ec24233d4701f0778dd842d (diff)
downloadlibapr-d0f96d7b1a2704efb3ceb45e03759c6f44913dbb.tar.gz
ap_canonical_err() return APR_*. use that for the test.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59942 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-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 fc36a68cc..d4ded14a0 100644
--- a/test/ab_apr.c
+++ b/test/ab_apr.c
@@ -535,13 +535,13 @@ static void read_connection(struct connection *c)
r = sizeof(buffer);
ap_setsocketopt(c->aprsock, APR_SO_TIMEOUT, aprtimeout);
status = ap_recv(c->aprsock, buffer, &r);
- if (r == 0 || (status != 0 && ap_canonical_error(status) != EAGAIN)) {
+ if (r == 0 || (status != 0 && ap_canonical_error(status) != APR_EAGAIN)) {
good++;
close_connection(c);
return;
}
- if (ap_canonical_error(status) == EAGAIN)
+ if (ap_canonical_error(status) == APR_EAGAIN)
return;
c->read += r;