diff options
| -rw-r--r-- | usr.sbin/devctl/devctl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/devctl/devctl.c b/usr.sbin/devctl/devctl.c index 32fbb64ef1856..7db6e6e529c0e 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); } |
