diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-10 13:44:17 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-11 14:35:34 -0800 |
commit | 75af06f5f8ffc41fabd100253aad222cb4ab8662 (patch) | |
tree | cbb2735d3981ae92b272b761eb966e9c910ecea1 /geometry.c | |
parent | 265ea3a77418df2744575f1168f89a33f01e72d4 (diff) |
Replace uCalloc() and uTypedCalloc() with direct calloc() 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.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -884,7 +884,7 @@ NextDfltDoodad(SectionInfo * si, GeometryInfo * info) { DoodadInfo *di; - di = uTypedCalloc(1, DoodadInfo); + di = calloc(1, sizeof(DoodadInfo)); if (!di) return NULL; if (si) @@ -907,7 +907,7 @@ NextDoodad(SectionInfo * si, GeometryInfo * info) { DoodadInfo *di; - di = uTypedCalloc(1, DoodadInfo); + di = calloc(1, sizeof(DoodadInfo)); if (di) { if (si) @@ -1048,7 +1048,7 @@ AddOverlay(SectionInfo * si, GeometryInfo * info, OverlayInfo * new) return True; } old = new; - new = uTypedCalloc(1, OverlayInfo); + new = calloc(1, sizeof(OverlayInfo)); if (!new) { if (warningLevel > 0) @@ -2404,7 +2404,7 @@ HandleShapeBody(ShapeDef * def, ShapeInfo * si, unsigned merge, return True; } si->nOutlines = def->nOutlines; - si->outlines = uTypedCalloc(def->nOutlines, XkbOutlineRec); + si->outlines = calloc(def->nOutlines, sizeof(XkbOutlineRec)); if (!si->outlines) { ERROR("Couldn't allocate outlines for \"%s\"\n", @@ -2425,7 +2425,7 @@ HandleShapeBody(ShapeDef * def, ShapeInfo * si, unsigned merge, outline = &si->outlines[nOut++]; outline->num_points = ol->nPoints; outline->corner_radius = si->dfltCornerRadius; - outline->points = uTypedCalloc(ol->nPoints, XkbPointRec); + outline->points = calloc(ol->nPoints, sizeof(XkbPointRec)); if (!outline->points) { ERROR("Can't allocate points for \"%s\"\n", @@ -2565,7 +2565,7 @@ HandleOverlayDef(OverlayDef * def, for (OverlayKeyDef *keyDef = def->keys; keyDef; keyDef = (OverlayKeyDef *) keyDef->common.next) { - OverlayKeyInfo *key = uTypedCalloc(1, OverlayKeyInfo); + OverlayKeyInfo *key = calloc(1, sizeof(OverlayKeyInfo)); if (!key) { if (warningLevel > 0) @@ -3292,7 +3292,7 @@ FontFromParts(Atom fontTok, totalSize = strlen(FONT_TEMPLATE) + strlen(font) + strlen(weight) + strlen(slant); totalSize += strlen(setWidth) + strlen(variant) + strlen(encoding); - rtrn = uCalloc(totalSize, 1); + rtrn = calloc(totalSize, 1); if (rtrn) { snprintf(rtrn, totalSize, FONT_TEMPLATE, font, weight, slant, |