diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2015-08-14 18:07:29 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2015-08-14 18:07:29 +0000 |
commit | 61fa9a842e56e2065f36b0efbd660ee203b46343 (patch) | |
tree | 918476d7c83f53e8c1dd38bdc9c89152f76f8bd8 /sys/nfs/nfs_boot.c | |
parent | ecbb677c6fcf8d26e8750736fa61bc0b39244b8f (diff) |
Replace sockaddr casts with the proper satosin() or satosin6() calls.
From David Hill; OK mpi@
Diffstat (limited to 'sys/nfs/nfs_boot.c')
-rw-r--r-- | sys/nfs/nfs_boot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_boot.c b/sys/nfs/nfs_boot.c index bf9fd1bdf34..81614c85062 100644 --- a/sys/nfs/nfs_boot.c +++ b/sys/nfs/nfs_boot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_boot.c,v 1.37 2015/07/15 22:16:42 deraadt Exp $ */ +/* $OpenBSD: nfs_boot.c,v 1.38 2015/08/14 18:07:28 bluhm Exp $ */ /* $NetBSD: nfs_boot.c,v 1.26 1996/05/07 02:51:25 thorpej Exp $ */ /* @@ -182,7 +182,7 @@ nfs_boot_init(struct nfs_diskless *nd, struct proc *procp) memset(&ifra, 0, sizeof(ifra)); bcopy(ifp->if_xname, ifra.ifra_name, sizeof(ifra.ifra_name)); - sin = (struct sockaddr_in *)&ifra.ifra_addr; + sin = &ifra.ifra_addr; sin->sin_len = sizeof(*sin); sin->sin_family = AF_INET; sin->sin_addr.s_addr = my_ip.s_addr; |