-/* $OpenBSD: kern_subr.c,v 1.39 2014/07/13 15:29:04 tedu Exp $ */
+/* $OpenBSD: kern_subr.c,v 1.40 2014/07/13 15:48:41 tedu Exp $ */
/* $NetBSD: kern_subr.c,v 1.15 1996/04/09 17:21:56 ragge Exp $ */
/*
{
struct hook_desc *hdp;
- hdp = (struct hook_desc *)malloc(sizeof (*hdp), M_DEVBUF, M_NOWAIT);
+ hdp = malloc(sizeof(*hdp), M_DEVBUF, M_NOWAIT);
if (hdp == NULL)
return (NULL);
-/* $OpenBSD: sys_generic.c,v 1.91 2014/07/13 15:29:04 tedu Exp $ */
+/* $OpenBSD: sys_generic.c,v 1.92 2014/07/13 15:48:41 tedu Exp $ */
/* $NetBSD: sys_generic.c,v 1.24 1996/03/29 00:25:32 cgd Exp $ */
/*
/* optimize for the default case, of a small nfds value */
if (sz > sizeof(pfds))
- pl = (struct pollfd *) malloc(sz, M_TEMP, M_WAITOK);
+ pl = malloc(sz, M_TEMP, M_WAITOK);
if ((error = copyin(fds, pl, sz)) != 0)
goto bad;
-/* $OpenBSD: vfs_bio.c,v 1.159 2014/07/13 15:29:04 tedu Exp $ */
+/* $OpenBSD: vfs_bio.c,v 1.160 2014/07/13 15:48:41 tedu Exp $ */
/* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */
/*
if (howmany > maxra)
howmany = maxra;
- xbpp = mallocarray((howmany + 1), sizeof(struct buf *), M_TEMP, M_NOWAIT);
+ xbpp = mallocarray(howmany + 1, sizeof(struct buf *), M_TEMP, M_NOWAIT);
if (xbpp == NULL)
goto out;