]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Minor style change: IMO checking for APR_SUCCESS is
authorJim Jagielski <jim@apache.org>
Thu, 9 Feb 2006 14:07:03 +0000 (14:07 +0000)
committerJim Jagielski <jim@apache.org>
Thu, 9 Feb 2006 14:07:03 +0000 (14:07 +0000)
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

modules/proxy/mod_proxy_fcgi.c

index f78e2d96f4453e4028a4eb36d39249759763557b..496facec213d2b25ffab4aaa06626945bd85be9f 100644 (file)
@@ -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;
     }