From f0ed7b1f525d21c88da75575c8899a6c013743a0 Mon Sep 17 00:00:00 2001 From: okan Date: Tue, 17 Dec 2013 16:10:43 +0000 Subject: replace with memset --- xutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xutil.c') 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