src/server/daemon/log.c

changeset 579
e10457d74fe1
parent 577
4f5ccaea4a92
--- a/src/server/daemon/log.c	Mon Feb 10 17:44:51 2025 +0100
+++ b/src/server/daemon/log.c	Sun Mar 02 18:10:52 2025 +0100
@@ -255,7 +255,7 @@
 
 void log_remove_logdup(LogDup *ldup) {
     pthread_mutex_lock(&mutex);
-    CxMutIterator i = cxListMutIterator(log_dup_list);
+    CxIterator i = cxListMutIterator(log_dup_list);
     WSBool finished = 0;
     cx_foreach(LogDup *, dup, i) {
         if(finished) break;
@@ -416,14 +416,14 @@
 }
 
 void shutdown_logging(void) {
-    CxIterator i = cxMapIteratorValues(access_log_files);
+    CxMapIterator i = cxMapIteratorValues(access_log_files);
     cx_foreach(LogFile *, log, i) {
         fclose(log->file);
         free(log);
     }
-    cxMapDestroy(access_log_files);
+    cxMapFree(access_log_files);
     
     if(log_dup_list) {
-        cxListDestroy(log_dup_list);
+        cxListFree(log_dup_list);
     } 
 }

mercurial