malloc() returns "void *", we don't need to cast the return value.

This commit is contained in:
simonb 2003-06-28 14:33:39 +00:00
parent ccbfec4208
commit d1c5820781
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: keydb.c,v 1.9 2003/02/01 06:23:47 thorpej Exp $ */
/* $NetBSD: keydb.c,v 1.10 2003/06/28 14:33:39 simonb Exp $ */
/* $KAME: keydb.c,v 1.64 2000/05/11 17:02:30 itojun Exp $ */
/*
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: keydb.c,v 1.9 2003/02/01 06:23:47 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: keydb.c,v 1.10 2003/06/28 14:33:39 simonb Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@ -217,7 +217,7 @@ keydb_newsecreplay(wsize)
bzero(p, sizeof(*p));
if (wsize != 0) {
p->bitmap = (caddr_t)malloc(wsize, M_SECA, M_NOWAIT);
p->bitmap = malloc(wsize, M_SECA, M_NOWAIT);
if (!p->bitmap) {
free(p, M_SECA);
return NULL;