diff options
author | eadler <eadler@FreeBSD.org> | 2012-01-20 01:38:12 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2012-01-20 01:38:12 +0000 |
commit | c33328dca54e9fddbdbf16e4195b2970183ef3d1 (patch) | |
tree | 0e186c771e9a4a29f294d1ccf60a7f3015b03954 /usr.sbin/mountd | |
parent | f568c7b0eb6e5aa91181fd5f2ffe1e29947aa05c (diff) | |
download | FreeBSD-src-c33328dca54e9fddbdbf16e4195b2970183ef3d1.zip FreeBSD-src-c33328dca54e9fddbdbf16e4195b2970183ef3d1.tar.gz |
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
Diffstat (limited to 'usr.sbin/mountd')
-rw-r--r-- | usr.sbin/mountd/mountd.c | 5 |
1 files changed, 1 insertions, 4 deletions
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)); |