X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmountd%2Fmountd.c;fp=utils%2Fmountd%2Fmountd.c;h=78f26c24bfcfcfbf5aa622bb4d2eaebe3dad9263;hp=dc84404aa1e81ad18d03cf811bacaa439a5dd840;hb=29b8a7700129d9768e3e2d94c81eec9f84ba8691;hpb=a88c279992f4b63e3dcaac9930e300fd4bb03dd7 diff --git a/utils/mountd/mountd.c b/utils/mountd/mountd.c index dc84404..78f26c2 100644 --- a/utils/mountd/mountd.c +++ b/utils/mountd/mountd.c @@ -484,14 +484,13 @@ get_rootfh(struct svc_req *rqstp, dirpath *path, nfs_export **expret, xtab_append(exp); if (v3) - fh = getfh_size ((struct sockaddr *) sin, p, 64); + fh = getfh_size(sin, p, 64); if (!v3 || (fh == NULL && errno == EINVAL)) { /* We first try the new nfs syscall. */ - fh = getfh ((struct sockaddr *) sin, p); + fh = getfh(sin, p); if (fh == NULL && errno == EINVAL) /* Let's try the old one. */ - fh = getfh_old ((struct sockaddr *) sin, - stb.st_dev, stb.st_ino); + fh = getfh_old(sin, stb.st_dev, stb.st_ino); } if (fh == NULL && !did_export) { exp->m_exported = 0;