Fix gcc warning about shadowed global.

Sponsored by:	Mellanox Technologies
MFC after:	2 weeks
This commit is contained in:
Konstantin Belousov 2019-04-05 20:12:19 +00:00
parent c703b76e38
commit ca34d6aeda
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=345968

View File

@ -397,14 +397,14 @@ reset_usage(void)
static int static int
reset(int ac, char **av) reset(int ac, char **av)
{ {
bool detach; bool detach_drv;
int ch; int ch;
detach = false; detach_drv = false;
while ((ch = getopt(ac, av, "d")) != -1) while ((ch = getopt(ac, av, "d")) != -1)
switch (ch) { switch (ch) {
case 'd': case 'd':
detach = true; detach_drv = true;
break; break;
default: default:
reset_usage(); reset_usage();
@ -414,7 +414,7 @@ reset(int ac, char **av)
if (ac != 1) if (ac != 1)
reset_usage(); reset_usage();
if (devctl_reset(av[0], detach) < 0) if (devctl_reset(av[0], detach_drv) < 0)
err(1, "Failed to reset %s", av[0]); err(1, "Failed to reset %s", av[0]);
return (0); return (0);
} }