diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2019-04-05 20:12:19 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2019-04-05 20:12:19 +0000 |
| commit | ca34d6aeda93827f779ee0a8f066ed9f544f0a62 (patch) | |
| tree | 41586533b4524c5a884d8c5df9240ff4dcc47ca5 | |
| parent | c703b76e38198b3ae7b5e40d918f402034d836b9 (diff) | |
Notes
| -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); } |
