summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-05-27 20:30:20 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-05-27 20:30:20 -0700
commitcefec39d93846c2d034be9a89f48466831eddde6 (patch)
tree8acb764330433c0f539290d804ff2c9044c11c57 /utils.c
parentab92831be0e862622105f015fe8c390715d2aae9 (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.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/utils.c b/utils.c
index 240ac1b..b813863 100644
--- a/utils.c
+++ b/utils.c
@@ -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;
}