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 --- action.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'action.c') diff --git a/action.c b/action.c index c6ff547..7c8074a 100644 --- a/action.c +++ b/action.c @@ -1493,7 +1493,7 @@ ActionsInit(void) { if (!actionsInitialized) { - bzero((char *) &constTrue, sizeof(constTrue)); + bzero(&constTrue, sizeof(constTrue)); constTrue = (ExprDef) { .common.stmtType = StmtExpr, .common.next = NULL, @@ -1501,7 +1501,7 @@ ActionsInit(void) .type = TypeBoolean, .value.str = XkbInternAtom(NULL, "true", False) }; - bzero((char *) &constFalse, sizeof(constFalse)); + bzero(&constFalse, sizeof(constFalse)); constFalse = (ExprDef) { .common.stmtType = StmtExpr, .common.next = NULL, -- cgit v1.2.3