From c33328dca54e9fddbdbf16e4195b2970183ef3d1 Mon Sep 17 00:00:00 2001 From: eadler Date: Fri, 20 Jan 2012 01:38:12 +0000 Subject: Fix warning when compiling with gcc46: error: variable 'dirp' set but not used error: variable 'dirplen' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days --- usr.sbin/mountd/mountd.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c index bc3d497..1e56e10 100644 --- a/usr.sbin/mountd/mountd.c +++ b/usr.sbin/mountd/mountd.c @@ -1642,9 +1642,8 @@ get_exportlist(void) struct iovec *iov; struct statfs *fsp, *mntbufp; struct xvfsconf vfc; - char *dirp; char errmsg[255]; - int dirplen, num, i; + int num, i; int iovlen; int done; struct nfsex_args eargs; @@ -1652,8 +1651,6 @@ get_exportlist(void) v4root_dirpath[0] = '\0'; bzero(&export, sizeof(export)); export.ex_flags = MNT_DELEXPORT; - dirp = NULL; - dirplen = 0; iov = NULL; iovlen = 0; bzero(errmsg, sizeof(errmsg)); -- cgit v1.1