diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-05-26 16:12:05 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-05-26 16:12:17 -0700 |
commit | e9a66d6ba4d0edd2d2d12cd0271aaecc43b6067d (patch) | |
tree | e5df835c95eb8af61a5002be4c7774cde0265482 /utils.c | |
parent | dbbc677985e3a853f2e52b8a9d09660d3fa6d983 (diff) |
Remove unused uRealloc & uRecalloc functions
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 29 |
1 files changed, 0 insertions, 29 deletions
@@ -52,35 +52,6 @@ uCalloc(unsigned n, unsigned size) /***====================================================================***/ -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; - - if (old == NULL) - rtrn = (char *) calloc(nNew, itemSize); - else { - rtrn = (char *) realloc((char *) old, nNew * itemSize); - if ((rtrn) && (nNew > nOld)) { - bzero(&rtrn[nOld * itemSize], (nNew - nOld) * itemSize); - } - } - return (Opaque) rtrn; -} - -/***====================================================================***/ - void uFree(Opaque ptr) { |