From 265ea3a77418df2744575f1168f89a33f01e72d4 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 10 Dec 2022 13:39:10 -0800 Subject: Replace uAlloc() and uTypedAlloc() with direct malloc() calls All these wrappers did was mess with types. Signed-off-by: Alan Coopersmith --- keytypes.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'keytypes.c') 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)); -- cgit v1.2.3