dav/sync.c

changeset 888
af685cc9d623
parent 876
9c2e229b05f9
--- a/dav/sync.c	Sun Aug 31 14:39:13 2025 +0200
+++ b/dav/sync.c	Sat Nov 08 23:06:11 2025 +0100
@@ -36,7 +36,6 @@
 #include <libxml/xmlerror.h>
 #include <sys/types.h>
 #include <cx/map.h>
-#include <cx/utils.h>
 #include <cx/list.h>
 #include <cx/hash_map.h>
 #include <cx/printf.h>
@@ -59,6 +58,8 @@
 
 #include <libidav/session.h>
 
+#include <cx/streams.h>
+
 #include "sync.h"
 
 #include "config.h"
@@ -974,7 +975,7 @@
     if(SYNC_HASHING(dir)) {
         // check for moved/copied files
         SYS_STAT s;
-        CxIterator mut_iter = cxListMutIterator(res_new);
+        CxIterator mut_iter = cxListIterator(res_new);
         cx_foreach(DavResource *, res, mut_iter) {
             if(dav_get_property_ns(res, DAV_PROPS_NS, "link")) {
                 continue;
@@ -2263,7 +2264,7 @@
     if(SYNC_STORE_HASH(dir)) {
         // calculate hashes of all new files and check if a file
         // was moved or is a copy
-        CxIterator mut_iter = cxListMutIterator(ls_new);
+        CxIterator mut_iter = cxListIterator(ls_new);
         cx_foreach(LocalResource *, local, mut_iter) {
             if(local->isdirectory || local->link_target) {
                 continue;

mercurial