svn commit: r230352 - head/usr.sbin/mountd
Eitan Adler
eadler at FreeBSD.org
Fri Jan 20 01:38:13 UTC 2012
Author: eadler
Date: Fri Jan 20 01:38:12 2012
New Revision: 230352
URL: http://svn.freebsd.org/changeset/base/230352
Log:
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
Modified:
head/usr.sbin/mountd/mountd.c
Modified: head/usr.sbin/mountd/mountd.c
==============================================================================
--- head/usr.sbin/mountd/mountd.c Fri Jan 20 01:38:05 2012 (r230351)
+++ head/usr.sbin/mountd/mountd.c Fri Jan 20 01:38:12 2012 (r230352)
@@ -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));
More information about the svn-src-all
mailing list