diff options
author | Greg Stein <gstein@apache.org> | 2000-04-24 13:10:46 +0000 |
---|---|---|
committer | Greg Stein <gstein@apache.org> | 2000-04-24 13:10:46 +0000 |
commit | 94bc89cfbc81f97cb363877e289c09bd027115c9 (patch) | |
tree | 8a76e3523a561f5e0e13e64f174d77d45f0f0141 | |
parent | c1618824f8bddc9d310deaf329a46c814cd0deea (diff) | |
download | apr-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.c | 4 |
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; |