]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
mountd: remove unused variable
authorChuck Lever <chuck.lever@oracle.com>
Sat, 23 Mar 2013 12:02:50 +0000 (08:02 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 25 Mar 2013 14:09:09 +0000 (10:09 -0400)
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>
utils/mountd/cache.c

index 45012be2ad56fb228ae02c1a8631f0f77cc78a81..c8aa46f8472cbe21f4d80a70fae4a84f223e16e4 100644 (file)
@@ -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);
 }