]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Style, indentation. No functional change.
authorChristophe Jaillet <jailletc36@apache.org>
Sat, 11 Jan 2014 06:32:59 +0000 (06:32 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sat, 11 Jan 2014 06:32:59 +0000 (06:32 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1557317 13f79535-47bb-0310-9956-ffa450edef68

modules/dav/main/std_liveprop.c

index 1f79dc712875af4b5fac80e61bc944f813adab21..e760c655b5329c293f359738fcaf904c01f7a5cd 100644 (file)
@@ -86,18 +86,18 @@ static dav_prop_insert dav_core_insert_prop(const dav_resource *resource,
                     continue;
 
                 if (!res_hooks->get_resource_type(resource, &name, &uri) &&
-            name) {
+                    name) {
 
                     if (!uri || !strcasecmp(uri, "DAV:"))
                         value = apr_pstrcat(p, value ? value : "",
-                        "<D:", name, "/>", NULL);
-            else
+                                            "<D:", name, "/>", NULL);
+                    else
                         value = apr_pstrcat(p, value ? value : "",
-                        "<x:", name,
-                        " xmlns:x=\"", uri,
-                        "\"/>", NULL);
+                                            "<x:", name,
+                                            " xmlns:x=\"", uri,
+                                            "\"/>", NULL);
                 }
-        }
+            }
         }
         switch (resource->type) {
         case DAV_RESOURCE_TYPE_VERSION:
@@ -114,8 +114,8 @@ static dav_prop_insert dav_core_insert_prop(const dav_resource *resource,
             else {
                 /* ### should we denote lock-null resources? */
                 if (value == NULL) {
-                value = "";        /* becomes: <D:resourcetype/> */
-            }
+                    value = "";        /* becomes: <D:resourcetype/> */
+                }
             }
             break;
         case DAV_RESOURCE_TYPE_HISTORY: