diff options
Diffstat (limited to 'keytypes.c')
-rw-r--r-- | keytypes.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)); |