From 27f426bee29dce1b82172346795cd41849a9e136 Mon Sep 17 00:00:00 2001 From: deraadt Date: Sun, 11 Jan 2015 02:57:09 +0000 Subject: [PATCH] unnecessary cast --- sys/dev/wscons/wsevent.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/wscons/wsevent.c b/sys/dev/wscons/wsevent.c index 6dda88f06e6..6b8d37a33ac 100644 --- a/sys/dev/wscons/wsevent.c +++ b/sys/dev/wscons/wsevent.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsevent.c,v 1.10 2014/09/14 14:17:25 jsg Exp $ */ +/* $OpenBSD: wsevent.c,v 1.11 2015/01/11 02:57:09 deraadt Exp $ */ /* $NetBSD: wsevent.c,v 1.16 2003/08/07 16:31:29 agc Exp $ */ /* @@ -100,7 +100,7 @@ wsevent_init(struct wseventvar *ev) return; } ev->get = ev->put = 0; - ev->q = malloc((u_long)WSEVENT_QSIZE * sizeof(struct wscons_event), + ev->q = malloc(WSEVENT_QSIZE * sizeof(struct wscons_event), M_DEVBUF, M_WAITOK | M_ZERO); } -- 2.20.1