summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorrees <rees@FreeBSD.org>2004-02-17 22:28:26 +0000
committerrees <rees@FreeBSD.org>2004-02-17 22:28:26 +0000
commit9a383d1448d0eecb2082f01c9fa00232399e77a0 (patch)
tree1cac08be83497dc1e79453250f18ace9828b2007 /sbin
parent427370d7d184c585bca13df8d6feaa7fb2e6f01a (diff)
downloadFreeBSD-src-9a383d1448d0eecb2082f01c9fa00232399e77a0.zip
FreeBSD-src-9a383d1448d0eecb2082f01c9fa00232399e77a0.tar.gz
remove dead code
Approved by: alfred
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mount_nfs4/mount_nfs4.c53
1 files changed, 0 insertions, 53 deletions
diff --git a/sbin/mount_nfs4/mount_nfs4.c b/sbin/mount_nfs4/mount_nfs4.c
index a735066..73e4d78 100644
--- a/sbin/mount_nfs4/mount_nfs4.c
+++ b/sbin/mount_nfs4/mount_nfs4.c
@@ -724,59 +724,6 @@ getnetconf_cached(const char *netid) {
return (p->nconf);
}
-/*
- * xdr routines for mount rpc's
- */
-int
-xdr_dir(xdrsp, dirp)
- XDR *xdrsp;
- char *dirp;
-{
- return (xdr_string(xdrsp, &dirp, RPCMNT_PATHLEN));
-}
-
-int
-xdr_fh(xdrsp, np)
- XDR *xdrsp;
- struct nfhret *np;
-{
- int i;
- long auth, authcnt, authfnd = 0;
-
- if (!xdr_u_long(xdrsp, &np->stat))
- return (0);
- if (np->stat)
- return (1);
- switch (np->vers) {
- case 1:
- np->fhsize = NFSX_V2FH;
- return (xdr_opaque(xdrsp, (caddr_t)np->nfh, NFSX_V2FH));
- case 3:
- if (!xdr_long(xdrsp, &np->fhsize))
- return (0);
- if (np->fhsize <= 0 || np->fhsize > NFSX_V3FHMAX)
- return (0);
- if (!xdr_opaque(xdrsp, (caddr_t)np->nfh, np->fhsize))
- return (0);
- if (!xdr_long(xdrsp, &authcnt))
- return (0);
- for (i = 0; i < authcnt; i++) {
- if (!xdr_long(xdrsp, &auth))
- return (0);
- if (auth == np->auth)
- authfnd++;
- }
- /*
- * Some servers, such as DEC's OSF/1 return a nil authenticator
- * list to indicate RPCAUTH_UNIX.
- */
- if (!authfnd && (authcnt > 0 || np->auth != RPCAUTH_UNIX))
- np->stat = EAUTH;
- return (1);
- };
- return (0);
-}
-
void
usage()
{
OpenPOWER on IntegriCloud