about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--client.c4
-rw-r--r--conf.c2
-rw-r--r--menu.c2
-rw-r--r--xutil.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/client.c b/client.c
index 43eb001..1fa88a0 100644
--- a/client.c
+++ b/client.c
@@ -408,7 +408,7 @@ client_config(struct client_ctx *cc)
 {
 	XConfigureEvent	 cn;
 
-	bzero(&cn, sizeof(cn));
+	(void)memset(&cn, 0, sizeof(cn));
 	cn.type = ConfigureNotify;
 	cn.event = cc->win;
 	cn.window = cc->win;
@@ -547,7 +547,7 @@ client_msg(struct client_ctx *cc, Atom proto, Time ts)
 {
 	XClientMessageEvent	 cm;
 
-	bzero(&cm, sizeof(cm));
+	(void)memset(&cm, 0, sizeof(cm));
 	cm.type = ClientMessage;
 	cm.window = cc->win;
 	cm.message_type = cwmh[WM_PROTOCOLS];
diff --git a/conf.c b/conf.c
index 9ac0414..426170f 100644
--- a/conf.c
+++ b/conf.c
@@ -226,7 +226,7 @@ conf_init(struct conf *c)
 {
 	u_int	i;
 
-	bzero(c, sizeof(*c));
+	(void)memset(c, 0, sizeof(*c));
 
 	c->bwidth = CONF_BWIDTH;
 	c->mamount = CONF_MAMOUNT;
diff --git a/menu.c b/menu.c
index 1db92d9..b0875ee 100644
--- a/menu.c
+++ b/menu.c
@@ -92,7 +92,7 @@ menu_filter(struct screen_ctx *sc, struct menu_q *menuq, char *prompt,
 
 	TAILQ_INIT(&resultq);
 
-	bzero(&mc, sizeof(mc));
+	(void)memset(&mc, 0, sizeof(mc));
 
 	xu_ptr_getpos(sc->rootwin, &mc.x, &mc.y);
 
diff --git a/xutil.c b/xutil.c
index c2c7834..5689e8b 100644
--- a/xutil.c
+++ b/xutil.c
@@ -311,7 +311,7 @@ xu_ewmh_get_net_wm_state(struct client_ctx *cc, int *n)
 		return (NULL);
 
 	state = xcalloc(*n, sizeof(Atom));
-	memcpy(state, p, *n * sizeof(Atom));
+	(void)memcpy(state, p, *n * sizeof(Atom));
 	XFree((char *)p);
 
 	return (state);