From f0ed7b1f525d21c88da75575c8899a6c013743a0 Mon Sep 17 00:00:00 2001 From: okan Date: Tue, 17 Dec 2013 16:10:43 +0000 Subject: replace with memset --- client.c | 6 +++--- conf.c | 4 ++-- menu.c | 4 ++-- xutil.c | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/client.c b/client.c index df01ce7..df25f72 100644 --- a/client.c +++ b/client.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: client.c,v 1.164 2013/12/16 19:02:17 okan Exp $ + * $OpenBSD: client.c,v 1.165 2013/12/17 16:10:43 okan Exp $ */ #include @@ -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 d65742f..b651fc0 100644 --- a/conf.c +++ b/conf.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: conf.c,v 1.152 2013/12/16 19:02:17 okan Exp $ + * $OpenBSD: conf.c,v 1.153 2013/12/17 16:10:43 okan Exp $ */ #include @@ -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 d1dad55..0150729 100644 --- a/menu.c +++ b/menu.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: menu.c,v 1.69 2013/12/13 22:39:13 okan Exp $ + * $OpenBSD: menu.c,v 1.70 2013/12/17 16:10:43 okan Exp $ */ #include @@ -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 6b07c04..2f8c51d 100644 --- a/xutil.c +++ b/xutil.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: xutil.c,v 1.81 2013/12/16 19:02:17 okan Exp $ + * $OpenBSD: xutil.c,v 1.82 2013/12/17 16:10:43 okan Exp $ */ #include @@ -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); -- cgit v1.2.3-2-gb3c3