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

This commit is contained in:
rwatson 2004-04-04 19:24:08 +00:00
parent 71e0ff3811
commit 18b25cc43d
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);