summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2013-03-23 08:02:50 -0400
committerSteve Dickson <steved@redhat.com>2013-03-25 10:09:09 -0400
commit2b445aa10fde7e84681f98a61e806e0c10da8be2 (patch)
tree825d280841f09a6f91a2ba2b3a110bf139d6af74
parentda54dec3cb40095cac96fd2d838144129262ac7f (diff)
downloadnfs-utils-2b445aa10fde7e84681f98a61e806e0c10da8be2.zip
nfs-utils-2b445aa10fde7e84681f98a61e806e0c10da8be2.tar.gz
nfs-utils-2b445aa10fde7e84681f98a61e806e0c10da8be2.tar.xz
mountd: remove unused variable
Making all in mountd cache.c: In function 'subexport': cache.c:374:9: warning: unused variable 'l2' [-Wunused-variable] Commit 8e2fb3fc removed the last use of "l2" in the subexport() function. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Acked-by: J. Bruce Fields <bfields@fieldses.org> Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--utils/mountd/cache.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c
index 45012be..c8aa46f 100644
--- a/utils/mountd/cache.c
+++ b/utils/mountd/cache.c
@@ -371,8 +371,6 @@ export_matches(nfs_export *exp, char *dom, char *path, struct addrinfo *ai)
static bool subexport(struct exportent *e1, struct exportent *e2)
{
char *p1 = e1->e_path, *p2 = e2->e_path;
- size_t l2 = strlen(p2);
-
return e2->e_flags & NFSEXP_CROSSMOUNT
&& is_subdirectory(p1, p2);
}