diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-10 15:21:49 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-11 15:36:06 -0800 |
commit | 8e58b7949ab96180d60fb13f7820d6cc01c228ae (patch) | |
tree | 678aa0cb9e88858568f68aac0ae24fcd4b5d8cf4 /compat.c | |
parent | bdbfa354dd4d93657104ccd7c9e892ed45197dd8 (diff) |
Remove unnecessary casts from bzero() calls
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'compat.c')
-rw-r--r-- | compat.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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); |