src/server/webdav/webdav.c

branch
webdav
changeset 214
4d7ac67a1c14
parent 213
4a6be4f10d5f
child 215
68e824ba4a4f
--- a/src/server/webdav/webdav.c	Sun Dec 29 21:06:02 2019 +0100
+++ b/src/server/webdav/webdav.c	Sun Dec 29 21:43:14 2019 +0100
@@ -306,7 +306,7 @@
         
         // run init: this can generate a new properties list (newProp)
         //           which will be passed to the next backend
-        if(dav->propfind_init(pReq, path, &newProp)) {
+        if(davList->propfind_init(pReq, path, &newProp)) {
             return REQ_ABORTED;
         }
         
@@ -326,19 +326,19 @@
  * of all backends
  */
 int webdav_propfind_do(
-        WebdavBackend *webdav,
+        WebdavBackend *dav,
         UcxList *requests,
         WebdavResponse *response,
         VFS_DIR parent,
         const char *path,
         struct stat *s)
 {
-    while(webdav && requests) {
-        if(webdav->propfind_do(requests->data, response, parent, path, s)) {
+    while(dav && requests) {
+        if(dav->propfind_do(requests->data, response, parent, path, s)) {
             return REQ_ABORTED;
         }
         
-        webdav = webdav->next;
+        dav = dav->next;
         requests = requests->next;
     }
     return REQ_PROCEED;
@@ -347,14 +347,14 @@
 /*
  * Executes propfind_finish for each Backend
  */
-int webdav_propfind_finish(WebdavBackend *webdav, UcxList *requests) {
+int webdav_propfind_finish(WebdavBackend *dav, UcxList *requests) {
     int ret = REQ_PROCEED;
-    while(webdav && requests) {
-        if(webdav->propfind_finish(requests->data)) {
+    while(dav && requests) {
+        if(dav->propfind_finish(requests->data)) {
             ret = REQ_ABORTED;
         }
         
-        webdav = webdav->next;
+        dav = dav->next;
         requests = requests->next;
     }
     return ret;

mercurial