summaryrefslogtreecommitdiff
path: root/geometry.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-10 13:39:10 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-11 14:35:34 -0800
commit265ea3a77418df2744575f1168f89a33f01e72d4 (patch)
tree7b67b74b0a3b3e519f80b78e56be491acd748653 /geometry.c
parent81e51cf1ff494131827df487a0f538c3b07e0407 (diff)
downloadxorg-app-xkbcomp-265ea3a77418df2744575f1168f89a33f01e72d4.tar.gz
Replace uAlloc() and uTypedAlloc() with direct malloc() calls
All these wrappers did was mess with types. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'geometry.c')
-rw-r--r--geometry.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/geometry.c b/geometry.c
index 49ed6dd..0f375c5 100644
--- a/geometry.c
+++ b/geometry.c
@@ -702,7 +702,7 @@ NextProperty(GeometryInfo * info)
{
PropertyInfo *pi;
- pi = uTypedAlloc(PropertyInfo);
+ pi = malloc(sizeof(PropertyInfo));
if (pi)
{
bzero((char *) pi, sizeof(PropertyInfo));
@@ -780,7 +780,7 @@ NextShape(GeometryInfo * info)
{
ShapeInfo *si;
- si = uTypedAlloc(ShapeInfo);
+ si = malloc(sizeof(ShapeInfo));
if (si)
{
bzero((char *) si, sizeof(ShapeInfo));
@@ -1077,7 +1077,7 @@ NextSection(GeometryInfo * info)
{
SectionInfo *si;
- si = uTypedAlloc(SectionInfo);
+ si = malloc(sizeof(SectionInfo));
if (si)
{
*si = info->dfltSection;
@@ -1167,7 +1167,7 @@ NextRow(SectionInfo * si)
{
RowInfo *row;
- row = uTypedAlloc(RowInfo);
+ row = malloc(sizeof(RowInfo));
if (row)
{
*row = si->dfltRow;
@@ -1204,7 +1204,7 @@ NextKey(RowInfo * row)
{
KeyInfo *key;
- key = uTypedAlloc(KeyInfo);
+ key = malloc(sizeof(KeyInfo));
if (key)
{
*key = row->dfltKey;