Pass getvfsbyname() the address of a struct xvfsconf instead of

struct vfsconf. This silences a warning, but could also prevent
stack corruption problems if xvfsconf ever became larger than vfsconf.

PR:		53863
Submitted by:	Lukas Ertl
This commit is contained in:
Tim J. Robbins 2003-07-20 11:27:54 +00:00
parent ff572a5e73
commit b97916da44
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=117804

View file

@ -30,6 +30,7 @@
* SUCH DAMAGE.
*
* $Id: mount_smbfs.c,v 1.17 2002/04/10 04:17:51 bp Exp $
* $FreeBSD$
*/
#include <sys/param.h>
#include <sys/stat.h>
@ -75,7 +76,7 @@ main(int argc, char *argv[])
extern void dropsuid();
extern int loadsmbvfs();
#else
struct vfsconf vfc;
struct xvfsconf vfc;
#endif /* APPLE */
char *next;
int opt, error, mntflags, caseopt;