summaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-10 13:44:17 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-11 14:35:34 -0800
commit75af06f5f8ffc41fabd100253aad222cb4ab8662 (patch)
treecbb2735d3981ae92b272b761eb966e9c910ecea1 /utils.h
parent265ea3a77418df2744575f1168f89a33f01e72d4 (diff)
Replace uCalloc() and uTypedCalloc() with direct calloc() calls
All these wrappers did was mess with types. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/utils.h b/utils.h
index 29e4205..68ec887 100644
--- a/utils.h
+++ b/utils.h
@@ -76,9 +76,6 @@ typedef int Comparison;
/***====================================================================***/
-extern Opaque uCalloc(unsigned /* n */ ,
- unsigned /* size */
- );
extern Opaque uRealloc(Opaque /* old */ ,
unsigned /* newSize */
);
@@ -90,7 +87,6 @@ extern Opaque uRecalloc(Opaque /* old */ ,
extern void uFree(Opaque /* ptr */
);
-#define uTypedCalloc(n,t) ((t *)uCalloc((unsigned)n,(unsigned)sizeof(t)))
#define uTypedRealloc(pO,n,t) ((t *)uRealloc((Opaque)pO,((unsigned)n)*sizeof(t)))
#define uTypedRecalloc(pO,o,n,t) ((t *)uRecalloc((Opaque)pO,((unsigned)o),((unsigned)n),sizeof(t)))