diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-10 13:39:10 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-11 14:35:34 -0800 |
commit | 265ea3a77418df2744575f1168f89a33f01e72d4 (patch) | |
tree | 7b67b74b0a3b3e519f80b78e56be491acd748653 /utils.c | |
parent | 81e51cf1ff494131827df487a0f538c3b07e0407 (diff) |
Replace uAlloc() and uTypedAlloc() with direct malloc() calls
All these wrappers did was mess with types.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -30,13 +30,6 @@ #include <stdlib.h> #include <stdarg.h> -/***====================================================================***/ - -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; } |