diff options
Diffstat (limited to 'sys/nfs')
-rw-r--r-- | sys/nfs/nfs_socket.c | 4 | ||||
-rw-r--r-- | sys/nfs/nfs_syscalls.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/nfs/nfs_socket.c b/sys/nfs/nfs_socket.c index 980f88312d6..e3ed1525640 100644 --- a/sys/nfs/nfs_socket.c +++ b/sys/nfs/nfs_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_socket.c,v 1.48 2007/05/31 23:04:09 thib Exp $ */ +/* $OpenBSD: nfs_socket.c,v 1.49 2007/06/25 20:40:00 thib Exp $ */ /* $NetBSD: nfs_socket.c,v 1.27 1996/04/15 20:20:00 thorpej Exp $ */ /* @@ -346,7 +346,7 @@ nfs_disconnect(nmp) if (nmp->nm_so) { so = nmp->nm_so; nmp->nm_so = (struct socket *)0; - soshutdown(so, 2); + soshutdown(so, SHUT_RDWR); soclose(so); } } diff --git a/sys/nfs/nfs_syscalls.c b/sys/nfs/nfs_syscalls.c index 0a7bc87aed2..ec6349d2bd3 100644 --- a/sys/nfs/nfs_syscalls.c +++ b/sys/nfs/nfs_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_syscalls.c,v 1.54 2007/05/31 20:03:43 thib Exp $ */ +/* $OpenBSD: nfs_syscalls.c,v 1.55 2007/06/25 20:40:00 thib Exp $ */ /* $NetBSD: nfs_syscalls.c,v 1.19 1996/02/18 11:53:52 fvdl Exp $ */ /* @@ -566,7 +566,7 @@ nfsrv_zapsock(slp) slp->ns_fp = NULL; so = slp->ns_so; so->so_upcall = NULL; - soshutdown(so, 2); + soshutdown(so, SHUT_RDWR); closef(fp, NULL); if (slp->ns_nam) MFREE(slp->ns_nam, m); |