diff options
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); |