summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Stein <gstein@apache.org>2000-04-24 13:10:46 +0000
committerGreg Stein <gstein@apache.org>2000-04-24 13:10:46 +0000
commit94bc89cfbc81f97cb363877e289c09bd027115c9 (patch)
tree8a76e3523a561f5e0e13e64f174d77d45f0f0141
parentc1618824f8bddc9d310deaf329a46c814cd0deea (diff)
downloadapr-94bc89cfbc81f97cb363877e289c09bd027115c9.tar.gz
ap_canonical_err() return APR_*. use that for the test.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59942 13f79535-47bb-0310-9956-ffa450edef68
-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;