From e02e32f71f6c24fcc69bdaf58f6f9e973a017896 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 10 Dec 2022 13:49:56 -0800 Subject: 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 --- utils.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'utils.c') diff --git a/utils.c b/utils.c index 603e8b7..61f04b6 100644 --- a/utils.c +++ b/utils.c @@ -31,17 +31,6 @@ #include -/***====================================================================***/ - -Opaque -uRealloc(Opaque old, unsigned newSize) -{ - if (old == NULL) - return ((Opaque) malloc(newSize)); - else - return ((Opaque) realloc((char *) old, newSize)); -} - /***====================================================================***/ Opaque -- cgit v1.2.3