src/server/test/vfs.c

changeset 490
d218607f5a7e
parent 415
d938228c382e
--- a/src/server/test/vfs.c	Sat Mar 25 17:18:51 2023 +0100
+++ b/src/server/test/vfs.c	Fri May 05 18:02:11 2023 +0200
@@ -303,7 +303,7 @@
         return 1;
     }
     
-    (void)cxMapRemove(vfs->files, path_key);
+    cxMapRemove(vfs->files, path_key);
     vfs->count_unlink++;
     return 0;
 }
@@ -328,7 +328,7 @@
         }
     }
     
-    (void)cxMapRemove(vfs->files, path_key);
+    cxMapRemove(vfs->files, path_key);
     vfs->count_rmdir++;
     return 0;
 }
@@ -351,7 +351,7 @@
     TestVFS *vfs = pool_malloc(sn->pool, sizeof(TestVFS));
     vfs->count_unlink = 0;
     vfs->count_rmdir = 0;
-    vfs->files = cxHashMapCreate(pool_allocator(sn->pool), 64);
+    vfs->files = cxHashMapCreate(pool_allocator(sn->pool), CX_STORE_POINTERS, 64);
     
     testVFSClass.instance = vfs;
     return &testVFSClass;
@@ -447,7 +447,7 @@
     VFSDir *dir = vfs_opendir(vfs, "/dir");
     UCX_TEST_ASSERT(dir, "dir not opened");
     
-    CxMap *files = cxHashMapCreate(cxDefaultAllocator, 8);
+    CxMap *files = cxHashMapCreate(cxDefaultAllocator, CX_STORE_POINTERS, 8);
     
     VFSEntry entry;
     while(vfs_readdir(dir, &entry)) {

mercurial