src/allocator.c

changeset 1188
b0300de92b72
parent 1180
4c3a69b9723a
parent 1169
6a33a5648027
--- a/src/allocator.c	Tue Feb 11 19:51:02 2025 +0100
+++ b/src/allocator.c	Tue Feb 11 19:55:32 2025 +0100
@@ -47,10 +47,10 @@
 
 static void *cx_calloc_stdlib(
         cx_attr_unused void *d,
-        size_t nelem,
-        size_t n
+        size_t nmemb,
+        size_t size
 ) {
-    return calloc(nelem, n);
+    return calloc(nmemb, size);
 }
 
 static void cx_free_stdlib(
@@ -169,10 +169,10 @@
 
 void *cxCalloc(
         const CxAllocator *allocator,
-        size_t nelem,
-        size_t n
+        size_t nmemb,
+        size_t size
 ) {
-    return allocator->cl->calloc(allocator->data, nelem, n);
+    return allocator->cl->calloc(allocator->data, nmemb, size);
 }
 
 void cxFree(

mercurial