summaryrefslogtreecommitdiff
path: root/keytypes.c
diff options
context:
space:
mode:
Diffstat (limited to 'keytypes.c')
-rw-r--r--keytypes.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/keytypes.c b/keytypes.c
index a1db622..79e09fc 100644
--- a/keytypes.c
+++ b/keytypes.c
@@ -183,7 +183,7 @@ InitKeyTypesInfo(KeyTypesInfo * info, XkbDescPtr xkb, KeyTypesInfo * from)
for (PreserveInfo *old = from->dflt.preserve;
old; old = (PreserveInfo *) old->defs.next)
{
- PreserveInfo *new = uTypedAlloc(PreserveInfo);
+ PreserveInfo *new = malloc(sizeof(PreserveInfo));
if (!new)
return;
*new = *old;
@@ -245,7 +245,7 @@ NextKeyType(KeyTypesInfo * info)
{
KeyTypeInfo *type;
- type = uTypedAlloc(KeyTypeInfo);
+ type = malloc(sizeof(KeyTypeInfo));
if (type != NULL)
{
bzero(type, sizeof(KeyTypeInfo));
@@ -588,7 +588,7 @@ AddPreserve(XkbDescPtr xkb,
}
return True;
}
- old = uTypedAlloc(PreserveInfo);
+ old = malloc(sizeof(PreserveInfo));
if (!old)
{
WSGO("Couldn't allocate preserve in %s\n", TypeTxt(type));