Spell 2 as SHUT_RDWR when used as an argument to soshutdown().

This commit is contained in:
Robert Watson 2004-04-04 19:24:08 +00:00
parent 79a32d2730
commit ecd189d420
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127857
2 changed files with 2 additions and 2 deletions

View File

@ -388,7 +388,7 @@ nfs_disconnect(struct nfsmount *nmp)
if (nmp->nm_so) {
so = nmp->nm_so;
nmp->nm_so = NULL;
soshutdown(so, 2);
soshutdown(so, SHUT_RDWR);
soclose(so);
}
}

View File

@ -566,7 +566,7 @@ nfsrv_zapsock(struct nfssvc_sock *slp)
so->so_rcv.sb_flags &= ~SB_UPCALL;
so->so_upcall = NULL;
so->so_upcallarg = NULL;
soshutdown(so, 2);
soshutdown(so, SHUT_RDWR);
closef(fp, NULL);
if (slp->ns_nam)
FREE(slp->ns_nam, M_SONAME);