diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2007-06-25 20:40:01 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2007-06-25 20:40:01 +0000 |
commit | dee05d4bf02a3372ec1bab91858867b2ad24deb5 (patch) | |
tree | 4801ca2b2247ec08844967ce85ccff33adcde842 /sys/nfs/nfs_socket.c | |
parent | 6dc2ae38ff3e813cdd0e844493ee2c1f2aaeab7f (diff) |
replace magic number with a define.
(2 -> SHUT_RDWR in calls to soshutdown()).
From Iruata Souza.
ok deraadt@
Diffstat (limited to 'sys/nfs/nfs_socket.c')
-rw-r--r-- | sys/nfs/nfs_socket.c | 4 |
1 files changed, 2 insertions, 2 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); } } |