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)); _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"