From 8e58b7949ab96180d60fb13f7820d6cc01c228ae Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 10 Dec 2022 15:21:49 -0800 Subject: Remove unnecessary casts from bzero() calls Signed-off-by: Alan Coopersmith --- compat.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'compat.c') diff --git a/compat.c b/compat.c index 479c8d2..af57ac3 100644 --- a/compat.c +++ b/compat.c @@ -123,8 +123,7 @@ InitCompatInfo(CompatInfo * info, XkbDescPtr xkb) info->ledDflt.defs.fileID = info->fileID; info->ledDflt.defs.defined = 0; info->ledDflt.defs.merge = MergeOverride; - bzero((char *) &info->groupCompat[0], - XkbNumKbdGroups * sizeof(GroupCompatInfo)); + bzero(&info->groupCompat[0], XkbNumKbdGroups * sizeof(GroupCompatInfo)); info->leds = NULL; InitVModInfo(&info->vmods, xkb); return; @@ -147,8 +146,7 @@ ClearCompatInfo(CompatInfo * info, XkbDescPtr xkb) ClearIndicatorMapInfo(xkb->dpy, &info->ledDflt); info->nInterps = 0; info->interps = (SymInterpInfo *) ClearCommonInfo(&info->interps->defs); - bzero((char *) &info->groupCompat[0], - XkbNumKbdGroups * sizeof(GroupCompatInfo)); + bzero(&info->groupCompat[0], XkbNumKbdGroups * sizeof(GroupCompatInfo)); info->leds = (LEDInfo *) ClearCommonInfo(&info->leds->defs); /* 3/30/94 (ef) -- XXX! Should free action info here */ ClearVModInfo(&info->vmods, xkb); @@ -163,7 +161,7 @@ NextInterp(CompatInfo * info) si = malloc(sizeof(SymInterpInfo)); if (si) { - bzero((char *) si, sizeof(SymInterpInfo)); + bzero(si, sizeof(SymInterpInfo)); info->interps = (SymInterpInfo *) AddCommonInfo(&info->interps->defs, (CommonInfo *) si); -- cgit v1.2.3