1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Use M_ZERO instead of bzero().

This commit is contained in:
Bruce M Simpson 2004-07-06 03:26:26 +00:00
parent 45329b8ee6
commit e1a8c3dc33
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131672

View File

@ -143,8 +143,7 @@ gif_clone_create(ifc, unit)
{
struct gif_softc *sc;
sc = malloc (sizeof(struct gif_softc), M_GIF, M_WAITOK);
bzero(sc, sizeof(struct gif_softc));
sc = malloc(sizeof(struct gif_softc), M_GIF, M_WAITOK | M_ZERO);
sc->gif_if.if_softc = sc;
if_initname(&sc->gif_if, ifc->ifc_name, unit);