bzero -> memset

This commit is contained in:
dyoung 2007-02-17 05:31:39 +00:00
parent 08f386424b
commit f272db0899
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: in_gif.c,v 1.53 2006/12/15 21:18:53 joerg Exp $ */
/* $NetBSD: in_gif.c,v 1.54 2007/02/17 05:31:39 dyoung Exp $ */
/* $KAME: in_gif.c,v 1.66 2001/07/29 04:46:09 itojun Exp $ */
/*
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: in_gif.c,v 1.53 2006/12/15 21:18:53 joerg Exp $");
__KERNEL_RCSID(0, "$NetBSD: in_gif.c,v 1.54 2007/02/17 05:31:39 dyoung Exp $");
#include "opt_inet.h"
#include "opt_iso.h"
@ -185,7 +185,7 @@ in_gif_output(struct ifnet *ifp, int family, struct mbuf *m)
else
rtcache_check(&sc->gif_ro);
if (sc->gif_ro.ro_rt == NULL) {
bzero(dst, sizeof(*dst));
memset(dst, 0, sizeof(*dst));
dst->sin_family = sin_dst->sin_family;
dst->sin_len = sizeof(struct sockaddr_in);
dst->sin_addr = sin_dst->sin_addr;