Changed setflags() to set_flags(). This fixes part of the world breakage

due to recently incremented namespace pollution in <unistd.h>.
This commit is contained in:
Bruce Evans 2000-01-28 12:44:50 +00:00
parent 8ea643add3
commit 3306ebd1a5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56740

View File

@ -205,7 +205,7 @@ int xdr_fh __P((XDR *, struct nfhret *));
* the call to getmntopts. * the call to getmntopts.
*/ */
static void static void
setflags(int* altflags, int* nfsflags, int dir) set_flags(int* altflags, int* nfsflags, int dir)
{ {
#define F2(af, nf) \ #define F2(af, nf) \
if (dir) { \ if (dir) { \
@ -345,13 +345,13 @@ main(argc, argv)
break; break;
case 'o': case 'o':
altflags = 0; altflags = 0;
setflags(&altflags, &nfsargsp->flags, TRUE); set_flags(&altflags, &nfsargsp->flags, TRUE);
if (mountmode == V2) if (mountmode == V2)
altflags |= ALTF_NFSV2; altflags |= ALTF_NFSV2;
else if (mountmode == V3) else if (mountmode == V3)
altflags |= ALTF_NFSV3; altflags |= ALTF_NFSV3;
getmntopts(optarg, mopts, &mntflags, &altflags); getmntopts(optarg, mopts, &mntflags, &altflags);
setflags(&altflags, &nfsargsp->flags, FALSE); set_flags(&altflags, &nfsargsp->flags, FALSE);
/* /*
* Handle altflags which don't map directly to * Handle altflags which don't map directly to
* mount flags. * mount flags.