use cxMempoolCreateSimple instead of cxMempoolCreate

Sun, 25 May 2025 19:12:39 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 25 May 2025 19:12:39 +0200
changeset 869
cece9ef3547f
parent 868
1e60f78705d4
child 870
9f001d18e5e6
child 873
96aade0d6246

use cxMempoolCreateSimple instead of cxMempoolCreate

libidav/config.c file | annotate | diff | comparison | revisions
libidav/resource.c file | annotate | diff | comparison | revisions
--- a/libidav/config.c	Mon May 19 22:56:44 2025 +0200
+++ b/libidav/config.c	Sun May 25 19:12:39 2025 +0200
@@ -198,7 +198,7 @@
 
 
 DavConfig* dav_config_new(xmlDoc *doc) {
-    CxMempool *cfg_mp = cxMempoolCreate(128, NULL);
+    CxMempool *cfg_mp = cxMempoolCreateSimple(128);
     DavConfig *config = cxMalloc(cfg_mp->allocator, sizeof(DavConfig));
     memset(config, 0, sizeof(DavConfig));
     config->mp = cfg_mp;
--- a/libidav/resource.c	Mon May 19 22:56:44 2025 +0200
+++ b/libidav/resource.c	Sun May 25 19:12:39 2025 +0200
@@ -786,7 +786,7 @@
 }
 
 int dav_load_prop(DavResource *res, DavPropName *properties, size_t numprop) {
-    CxMempool *mp = cxMempoolCreate(64, NULL);
+    CxMempool *mp = cxMempoolCreateSimple(64);
     const CxAllocator *a = mp->allocator;
     
     CxList *proplist = cxArrayListCreate(a, NULL, sizeof(DavProperty), numprop);

mercurial