From 265ea3a77418df2744575f1168f89a33f01e72d4 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 10 Dec 2022 13:39:10 -0800 Subject: Replace uAlloc() and uTypedAlloc() with direct malloc() calls All these wrappers did was mess with types. Signed-off-by: Alan Coopersmith --- utils.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'utils.c') diff --git a/utils.c b/utils.c index ac920af..2d605dd 100644 --- a/utils.c +++ b/utils.c @@ -30,13 +30,6 @@ #include #include -/***====================================================================***/ - -Opaque -uAlloc(unsigned size) -{ - return ((Opaque) malloc(size)); -} /***====================================================================***/ @@ -315,7 +308,7 @@ uStringDup(const char *str) if (str == NULL) return NULL; - rtrn = (char *) uAlloc(strlen(str) + 1); + rtrn = malloc(strlen(str) + 1); strcpy(rtrn, str); return rtrn; } -- cgit v1.2.1