diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-10 13:49:56 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-11 15:36:06 -0800 |
commit | e02e32f71f6c24fcc69bdaf58f6f9e973a017896 (patch) | |
tree | 942bf0f4eafd2fac63249fb0250c4867403abde5 /utils.c | |
parent | 75af06f5f8ffc41fabd100253aad222cb4ab8662 (diff) |
Replace uTypedRealloc() with direct reallocarray() calls
Falls back to realloc() if platform doesn't offer reallocarray().
Also removes uRealloc() since it had no other uses.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -34,17 +34,6 @@ /***====================================================================***/ Opaque -uRealloc(Opaque old, unsigned newSize) -{ - if (old == NULL) - return ((Opaque) malloc(newSize)); - else - return ((Opaque) realloc((char *) old, newSize)); -} - -/***====================================================================***/ - -Opaque uRecalloc(Opaque old, unsigned nOld, unsigned nNew, unsigned itemSize) { char *rtrn; |