summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Jagielski <jim@apache.org>2006-02-09 14:07:03 +0000
committerJim Jagielski <jim@apache.org>2006-02-09 14:07:03 +0000
commitf74b30e1cb353c45e57fdec0fd38a6adf1850b08 (patch)
tree7dda277a37e01b4b9c0591302914753362efab55
parent10240118aec8c994f93078c3b394d9185581dfee (diff)
downloadhttpd-f74b30e1cb353c45e57fdec0fd38a6adf1850b08.tar.gz
Minor style change: IMO checking for APR_SUCCESS is
just better and more consistant. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/fcgi-proxy-dev@376297 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--modules/proxy/mod_proxy_fcgi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/proxy/mod_proxy_fcgi.c b/modules/proxy/mod_proxy_fcgi.c
index f78e2d96f4..496facec21 100644
--- a/modules/proxy/mod_proxy_fcgi.c
+++ b/modules/proxy/mod_proxy_fcgi.c
@@ -150,7 +150,7 @@ static apr_status_t send_data(proxy_conn_rec *conn,
{
apr_status_t rv = apr_socket_sendv(conn->sock, vec, nvec, len);
- if (! rv) {
+ if (rv == APR_SUCCESS) {
conn->worker->s->transferred += *len;
}
@@ -164,7 +164,7 @@ static apr_status_t get_data(proxy_conn_rec *conn,
{
apr_status_t rv = apr_socket_recv(conn->sock, buffer, buflen);
- if (! rv) {
+ if (rv == APR_SUCCESS) {
conn->worker->s->read += *buflen;
}