diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-05-27 20:30:20 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-05-27 20:30:20 -0700 |
commit | cefec39d93846c2d034be9a89f48466831eddde6 (patch) | |
tree | 8acb764330433c0f539290d804ff2c9044c11c57 /utils.c | |
parent | ab92831be0e862622105f015fe8c390715d2aae9 (diff) |
Replace custom uAlloc/uCalloc with plain malloc/calloc
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 19 |
1 files changed, 1 insertions, 18 deletions
@@ -36,23 +36,6 @@ unsigned int debugFlags; /***====================================================================***/ -Opaque -uAlloc(unsigned size) -{ - return ((Opaque) malloc(size)); -} - -/***====================================================================***/ - -Opaque -uCalloc(unsigned n, unsigned size) -{ - return ((Opaque) calloc(n, size)); -} - - -/***====================================================================***/ - static FILE *errorFile = NULL; Boolean @@ -172,7 +155,7 @@ uStringDup(const char *str) if (str == NULL) return NULL; - rtrn = (char *) uAlloc(strlen(str) + 1); + rtrn = (char *) malloc(strlen(str) + 1); strcpy(rtrn, str); return rtrn; } |