apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r580632 - /apr/apr/trunk/threadproc/unix/proc.c
Date Sat, 29 Sep 2007 19:56:47 GMT
Author: wrowe
Date: Sat Sep 29 12:56:47 2007
New Revision: 580632

URL: http://svn.apache.org/viewvc?rev=580632&view=rev
Log:
Thanks for catching the unbalanced parens, jerenkrantz.

These can be reduced further and still remain legible.

Modified:
    apr/apr/trunk/threadproc/unix/proc.c

Modified: apr/apr/trunk/threadproc/unix/proc.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/threadproc/unix/proc.c?rev=580632&r1=580631&r2=580632&view=diff
==============================================================================
--- apr/apr/trunk/threadproc/unix/proc.c (original)
+++ apr/apr/trunk/threadproc/unix/proc.c Sat Sep 29 12:56:47 2007
@@ -574,15 +574,15 @@
     }
 
     /* Parent process */
-    if ((attr->child_in && (attr->child_in->filedes == -1))) {
+    if (attr->child_in && (attr->child_in->filedes == -1)) {
         apr_file_close(attr->child_in);
     }
 
-    if ((attr->child_out) && (attr->child_out->filedes == -1)) {
+    if (attr->child_out && (attr->child_out->filedes == -1)) {
         apr_file_close(attr->child_out);
     }
 
-    if ((attr->child_err) && (attr->child_err->filedes == -1)) {
+    if (attr->child_err && (attr->child_err->filedes == -1)) {
         apr_file_close(attr->child_err);
     }
 



Mime
View raw message