From ca34d6aeda93827f779ee0a8f066ed9f544f0a62 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Fri, 5 Apr 2019 20:12:19 +0000 Subject: [PATCH] Fix gcc warning about shadowed global. Sponsored by: Mellanox Technologies MFC after: 2 weeks --- usr.sbin/devctl/devctl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.sbin/devctl/devctl.c b/usr.sbin/devctl/devctl.c index 32fbb64ef185..7db6e6e529c0 100644 --- a/usr.sbin/devctl/devctl.c +++ b/usr.sbin/devctl/devctl.c @@ -397,14 +397,14 @@ reset_usage(void) static int reset(int ac, char **av) { - bool detach; + bool detach_drv; int ch; - detach = false; + detach_drv = false; while ((ch = getopt(ac, av, "d")) != -1) switch (ch) { case 'd': - detach = true; + detach_drv = true; break; default: reset_usage(); @@ -414,7 +414,7 @@ reset(int ac, char **av) if (ac != 1) 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]); return (0); }