diff options
author | gstein <gstein@13f79535-47bb-0310-9956-ffa450edef68> | 2000-04-24 13:10:46 +0000 |
---|---|---|
committer | gstein <gstein@13f79535-47bb-0310-9956-ffa450edef68> | 2000-04-24 13:10:46 +0000 |
commit | d0f96d7b1a2704efb3ceb45e03759c6f44913dbb (patch) | |
tree | 8a76e3523a561f5e0e13e64f174d77d45f0f0141 /test | |
parent | 52619a7f1f5139d02ec24233d4701f0778dd842d (diff) | |
download | libapr-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.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; |