summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-01-07 00:57:55 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-01-07 00:57:55 +0000
commitb2251b1313131981728d2f775c918c53e83b89fe (patch)
tree3a5259a26fe7f5e86282cd7d6f80f84d0845d343
parentbf88f8ae1ea2bbbb0921e5e922422c5933c53d67 (diff)
s/memset/bzero/
From: Michael Shalayeff <mickey@lucifier.dial-up.user.akula.net>
-rw-r--r--sys/netinet/in_gif.c6
-rw-r--r--sys/netinet/tcp_output.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/netinet/in_gif.c b/sys/netinet/in_gif.c
index 11e2fb8eee1..b332702bd26 100644
--- a/sys/netinet/in_gif.c
+++ b/sys/netinet/in_gif.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in_gif.c,v 1.4 1999/12/28 07:17:38 itojun Exp $ */
+/* $OpenBSD: in_gif.c,v 1.5 2000/01/07 00:57:54 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -110,8 +110,8 @@ in_gif_output(ifp, family, m, rt)
}
/* setup dummy tdb. it highly depends on ipe4_output() code. */
- memset(&tdb, 0, sizeof(tdb));
- memset(&xfs, 0, sizeof(xfs));
+ bzero(&tdb, sizeof(tdb));
+ bzero(&xfs, sizeof(xfs));
tdb.tdb_src.sin.sin_family = AF_INET;
tdb.tdb_src.sin.sin_len = sizeof(struct sockaddr_in);
tdb.tdb_src.sin.sin_addr = sin_src->sin_addr;
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
index fdccb07e017..6d6cf41dfa6 100644
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_output.c,v 1.28 1999/12/21 17:49:28 provos Exp $ */
+/* $OpenBSD: tcp_output.c,v 1.29 2000/01/07 00:57:54 itojun Exp $ */
/* $NetBSD: tcp_output.c,v 1.16 1997/06/03 16:17:09 kml Exp $ */
/*
@@ -807,7 +807,7 @@ send:
union sockaddr_union sa;
struct tdb *tdb;
- memset(&sa, 0, sizeof(union sockaddr_union));
+ bzero(&sa, sizeof(union sockaddr_union));
switch (tp->pf) {
case 0: /*default to PF_INET*/