gcc 4.9 produces vfork clobberation warnings for "name" and "buflen".

Since there's no performance reason to use vfork here, just replace it
with fork and be done with warnings once and for all.
This commit is contained in:
pooka 2015-01-04 22:05:37 +00:00
parent 17c647e734
commit 15c9a10afd

View File

@ -1,4 +1,4 @@
/* $NetBSD: mount.c,v 1.99 2013/10/05 08:06:35 ast Exp $ */
/* $NetBSD: mount.c,v 1.100 2015/01/04 22:05:37 pooka Exp $ */
/*
* Copyright (c) 1980, 1989, 1993, 1994
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1989, 1993, 1994\
#if 0
static char sccsid[] = "@(#)mount.c 8.25 (Berkeley) 5/8/95";
#else
__RCSID("$NetBSD: mount.c,v 1.99 2013/10/05 08:06:35 ast Exp $");
__RCSID("$NetBSD: mount.c,v 1.100 2015/01/04 22:05:37 pooka Exp $");
#endif
#endif /* not lint */
@ -473,9 +473,9 @@ mountfs(const char *vfstype, const char *spec, const char *name,
warn("Cannot create pipe");
}
switch (pid = vfork()) {
switch (pid = fork()) {
case -1: /* Error. */
warn("vfork");
warn("fork");
if (optbuf)
free(optbuf);
free(argv);