Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jan 2012 01:38:12 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r230352 - head/usr.sbin/mountd
Message-ID:  <201201200138.q0K1cCm7016644@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201200138.q0K1cCm7016644>