summaryrefslogtreecommitdiffstats
path: root/sys/nfs/nfs_boot.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/nfs/nfs_boot.c')
-rw-r--r--sys/nfs/nfs_boot.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/nfs/nfs_boot.c b/sys/nfs/nfs_boot.c
index a539a210bc8..d54709a9493 100644
--- a/sys/nfs/nfs_boot.c
+++ b/sys/nfs/nfs_boot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_boot.c,v 1.34 2014/09/14 14:17:26 jsg Exp $ */
+/* $OpenBSD: nfs_boot.c,v 1.35 2014/11/14 23:01:44 tedu Exp $ */
/* $NetBSD: nfs_boot.c,v 1.26 1996/05/07 02:51:25 thorpej Exp $ */
/*
@@ -178,7 +178,7 @@ nfs_boot_init(struct nfs_diskless *nd, struct proc *procp)
* Do enough of ifconfig(8) so that the chosen interface
* can talk to the servers. (just set the address)
*/
- bzero(&ifra, sizeof(ifra));
+ memset(&ifra, 0, sizeof(ifra));
bcopy(ifp->if_xname, ifra.ifra_name, sizeof(ifra.ifra_name));
sin = (struct sockaddr_in *)&ifra.ifra_addr;
@@ -204,7 +204,7 @@ nfs_boot_init(struct nfs_diskless *nd, struct proc *procp)
* The server address returned by the WHOAMI call
* is used for all subsequent bootparam RPCs.
*/
- bzero((caddr_t)&bp_sin, sizeof(bp_sin));
+ memset(&bp_sin, 0, sizeof(bp_sin));
bp_sin.sin_len = sizeof(bp_sin);
bp_sin.sin_family = AF_INET;
bp_sin.sin_addr.s_addr = ifatoia(ifa)->ia_broadaddr.sin_addr.s_addr;
@@ -240,7 +240,7 @@ nfs_boot_getfh(struct sockaddr_in *bpsin, char *key,
args = &ndmntp->ndm_args;
/* Initialize mount args. */
- bzero((caddr_t) args, sizeof(*args));
+ memset(args, 0, sizeof(*args));
args->addr = (struct sockaddr *)&ndmntp->ndm_saddr;
args->addrlen = args->addr->sa_len;
args->sotype = SOCK_DGRAM;
@@ -480,7 +480,7 @@ bp_getfile(struct sockaddr_in *bpsin, char *key, struct sockaddr_in *md_sin,
/* setup server socket address */
sin = md_sin;
- bzero((caddr_t)sin, sizeof(*sin));
+ memset(sin, 0, sizeof(*sin));
sin->sin_len = sizeof(*sin);
sin->sin_family = AF_INET;
sin->sin_addr = inaddr;