]> granicus.if.org Git - apache/commitdiff
* Style police. No functional changes.
authorRuediger Pluem <rpluem@apache.org>
Sat, 29 Dec 2007 20:28:57 +0000 (20:28 +0000)
committerRuediger Pluem <rpluem@apache.org>
Sat, 29 Dec 2007 20:28:57 +0000 (20:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@607472 13f79535-47bb-0310-9956-ffa450edef68

modules/dav/main/util.c

index b06f996b6c74bd22ad3c8ad3425ac80643fe471e..e2786a0746ead847376a4b526ad2edb8d653bc3e 100644 (file)
@@ -1413,7 +1413,7 @@ static int dav_meets_conditions(request_rec *r, int resource_state)
     /* If-Match '*' fix. Resource existence not checked by ap_meets_conditions.
      * If-Match '*' request should succeed only if the resource exists. */
     if ((if_match = apr_table_get(r->headers_in, "If-Match")) != NULL) {
-        if(if_match[0] == '*' && resource_state != DAV_RESOURCE_EXISTS)
+        if (if_match[0] == '*' && resource_state != DAV_RESOURCE_EXISTS)
             return HTTP_PRECONDITION_FAILED;
     }
 
@@ -1421,14 +1421,16 @@ static int dav_meets_conditions(request_rec *r, int resource_state)
 
     /* If-None-Match '*' fix. If-None-Match '*' request should succeed 
      * if the resource does not exist. */
-    if(retVal == HTTP_PRECONDITION_FAILED) {
+    if (retVal == HTTP_PRECONDITION_FAILED) {
         /* Note. If if_none_match != NULL, if_none_match is the culprit.
          * Since, in presence of If-None-Match, 
          * other If-* headers are undefined. */
-        if((if_none_match = 
-                apr_table_get(r->headers_in, "If-None-Match")) != NULL) {
-            if(if_none_match[0] == '*' && resource_state != DAV_RESOURCE_EXISTS)
+        if ((if_none_match =
+            apr_table_get(r->headers_in, "If-None-Match")) != NULL) {
+            if (if_none_match[0] == '*'
+                && resource_state != DAV_RESOURCE_EXISTS) {
                 return OK;
+            }
         }
     }