summaryrefslogtreecommitdiff
path: root/xkbcomp.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-10 15:21:49 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-11 15:36:06 -0800
commit8e58b7949ab96180d60fb13f7820d6cc01c228ae (patch)
tree678aa0cb9e88858568f68aac0ae24fcd4b5d8cf4 /xkbcomp.c
parentbdbfa354dd4d93657104ccd7c9e892ed45197dd8 (diff)
downloadxorg-app-xkbcomp-8e58b7949ab96180d60fb13f7820d6cc01c228ae.tar.gz
Remove unnecessary casts from bzero() calls
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xkbcomp.c')
-rw-r--r--xkbcomp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xkbcomp.c b/xkbcomp.c
index 0ecccc3..d97220f 100644
--- a/xkbcomp.c
+++ b/xkbcomp.c
@@ -1021,7 +1021,7 @@ main(int argc, char *argv[])
}
}
}
- bzero((char *) &result, sizeof(result));
+ bzero(&result, sizeof(result));
result.type = mapToUse->type;
if ((result.xkb = XkbAllocKeyboard()) == NULL)
{
@@ -1065,7 +1065,7 @@ main(int argc, char *argv[])
else if (inputFormat == INPUT_XKM) /* parse xkm file */
{
unsigned tmp;
- bzero((char *) &result, sizeof(result));
+ bzero(&result, sizeof(result));
if ((result.xkb = XkbAllocKeyboard()) == NULL)
{
WSGO("Cannot allocate keyboard description\n");
@@ -1087,7 +1087,7 @@ main(int argc, char *argv[])
}
else if (inDpy != NULL)
{
- bzero((char *) &result, sizeof(result));
+ bzero(&result, sizeof(result));
result.type = XkmKeymapFile;
result.xkb = XkbGetMap(inDpy, XkbAllMapComponentsMask, device_id);
if (result.xkb == NULL)