bzero -> memset
This commit is contained in:
parent
6d0cb97ff8
commit
0131d25777
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: scope6.c,v 1.1 2006/01/21 00:15:37 rpaulo Exp $ */
|
||||
/* $NetBSD: scope6.c,v 1.2 2006/03/05 01:28:51 rpaulo Exp $ */
|
||||
/* $KAME$ */
|
||||
|
||||
/*-
|
||||
|
@ -60,7 +60,7 @@ void
|
|||
scope6_init()
|
||||
{
|
||||
|
||||
bzero(&sid_default, sizeof(sid_default));
|
||||
memset(&sid_default, 0, sizeof(sid_default));
|
||||
}
|
||||
|
||||
struct scope6_id *
|
||||
|
@ -69,7 +69,7 @@ scope6_ifattach(struct ifnet *ifp)
|
|||
struct scope6_id *sid;
|
||||
|
||||
sid = (struct scope6_id *)malloc(sizeof(*sid), M_IFADDR, M_WAITOK);
|
||||
bzero(sid, sizeof(*sid));
|
||||
memset(sid, 0, sizeof(*sid));
|
||||
|
||||
/*
|
||||
* XXX: IPV6_ADDR_SCOPE_xxx macros are not standard.
|
||||
|
|
Loading…
Reference in New Issue